58
edits
Minh Nguyen (talk | contribs) m (→Number Box: Typos) |
|||
| Line 19: | Line 19: | ||
The widget supports all the attributes and properties of the textbox, and implements nsIDOMXULTextBoxElement. | The widget supports all the attributes and properties of the textbox, and implements nsIDOMXULTextBoxElement. | ||
All attributes shown above have a corresponding property. The decimalPlaces property corrsponds to the decimalplaces | All attributes shown above have a corresponding property. The decimalPlaces property corrsponds to the decimalplaces attribute. The wrapAround property corresponds to the wraparound attribute. | ||
; min : The minimum value the number in the field may be. The value cannot be decreased below this value. The default value is 0. To set no minimum value, use -Infinity. | ; min : The minimum value the number in the field may be. The value cannot be decreased below this value. The default value is 0. To set no minimum value, use -Infinity. | ||
| Line 33: | Line 33: | ||
Negative values are also supported for the min, value and max attributes. | Negative values are also supported for the min, value and max attributes. | ||
Only the characters 0-9 may be displayed in the field. If the min attribute is less than 0, the minus sign (-) may also be entered. If the decimalplaces attribute is greater than 0, the locale | Only the characters 0-9 may be displayed in the field. If the min attribute is less than 0, the minus sign (-) may also be entered. If the decimalplaces attribute is greater than 0, the locale dependent decimal point symbol may also be entered. | ||
Methods: | Methods: | ||
; increase() : increment | ; increase() : increment the current value by the value of the increment property | ||
; decrease() : decrement | ; decrease() : decrement the current value by the value of the increment property | ||
Events: | Events: | ||
edits