1 | <div class="body-wrap"> |
---|
2 | <div class="top-tools"> |
---|
3 | <a class="inner-link" href="#Number-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> |
---|
4 | <a class="inner-link" href="#Number-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a> |
---|
5 | <a class="inner-link" href="#Number-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a> |
---|
6 | <a class="bookmark" href="../docs/?class=Number"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> |
---|
7 | </div> |
---|
8 | <h1>Class Number</h1> |
---|
9 | <table cellspacing="0"> |
---|
10 | <tr><td class="label">Package:</td><td class="hd-info">Global</td></tr> |
---|
11 | <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Ext.js" target="_blank">Ext.js</a></td></tr> |
---|
12 | <tr><td class="label">Class:</td><td class="hd-info">Number</td></tr> |
---|
13 | <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr> |
---|
14 | </table> |
---|
15 | <div class="description"> |
---|
16 | </div> |
---|
17 | |
---|
18 | <div class="hr"></div> |
---|
19 | <a id="Number-props"></a> |
---|
20 | <h2>Public Properties</h2> |
---|
21 | <div class="no-members">This class has no public properties.</div> <a id="Number-methods"></a> |
---|
22 | <h2>Public Methods</h2> |
---|
23 | <table cellspacing="0" class="member-table"> |
---|
24 | <tr> |
---|
25 | <th class="sig-header" colspan="2">Method</th> |
---|
26 | <th class="msource-header">Defined By</th> |
---|
27 | </tr> |
---|
28 | <tr class="method-row expandable"> |
---|
29 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
30 | <td class="sig"> |
---|
31 | <a id="Number-constrain"></a> |
---|
32 | <b>constrain</b>( <code>Number min</code>, <code>Number max</code> ) : Number <div class="mdesc"> |
---|
33 | <div class="short">Checks whether or not the current number is within a desired range. If the number is already within the |
---|
34 | range it is ...</div> |
---|
35 | <div class="long"> |
---|
36 | Checks whether or not the current number is within a desired range. If the number is already within the |
---|
37 | range it is returned, otherwise the min or max value is returned depending on which side of the range is |
---|
38 | exceeded. Note that this method returns the constrained value but does not change the current number. <div class="mdetail-params"> |
---|
39 | <strong>Parameters:</strong> |
---|
40 | <ul><li><code>min</code> : Number<div class="sub-desc">The minimum number in the range</div></li><li><code>max</code> : Number<div class="sub-desc">The maximum number in the range</div></li> </ul> |
---|
41 | <strong>Returns:</strong> |
---|
42 | <ul> |
---|
43 | <li><code>Number</code><div class="sub-desc">The constrained value if outside the range, otherwise the current value</div></li> |
---|
44 | </ul> |
---|
45 | </div> |
---|
46 | </div> |
---|
47 | </div> |
---|
48 | </td> |
---|
49 | <td class="msource">Number</td> |
---|
50 | </tr> |
---|
51 | </table> |
---|
52 | <a id="Number-events"></a> |
---|
53 | <h2>Public Events</h2> |
---|
54 | <div class="no-members">This class has no public events.</div> |
---|
55 | </div> |
---|