XUL:Specs:NumberBox: Difference between revisions

m
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 atribute. The wrapAround property corresponds to the wraparound attribute.
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 dependant decimal point symbol may also be entered.
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 thae current value by the value of the increment property
; increase() : increment the current value by the value of the increment property
; decrease() : decrement thae current value by the value of the increment property
; decrease() : decrement the current value by the value of the increment property


Events:
Events:
58

edits