projects/components/widgets/input/default/src/number/number.component.doc.ts
The wmNumber component defines the number widget.
Methods |
Inputs |
onBlur | ||||||||||||
onBlur($event: Event, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget loses focus.
Parameters :
Returns :
void
|
onChange | ||||||||||||||||||||
onChange($event: Event, widget: any, newVal: string | number, oldVal: string | number)
|
||||||||||||||||||||
Callback function which will be triggered when the widget value is changed.
Parameters :
Returns :
void
|
onClick | ||||||||||||
onClick($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget is clicked.
Parameters :
Returns :
void
|
onFocus | ||||||||||||
onFocus($event: Event, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget gets focused.
Parameters :
Returns :
void
|
onKeydown | ||||||||||||
onKeydown($event: KeyboardEvent, widget: any)
|
||||||||||||
Callback function which will be triggered whenever a key is pressed down.
Parameters :
Returns :
void
|
onKeypress | ||||||||||||
onKeypress($event: KeyboardEvent, widget: any)
|
||||||||||||
Callback function which will be triggered whenever a key is pressed.
Parameters :
Returns :
void
|
onKeyup | ||||||||||||
onKeyup($event: KeyboardEvent, widget: any)
|
||||||||||||
Callback function which will be triggered whenever a key is released.
Parameters :
Returns :
void
This method does not return anything |
onMouseenter | ||||||||||||
onMouseenter($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the mouse enters the widget.
Parameters :
Returns :
void
|
onMouseleave | ||||||||||||
onMouseleave($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the mouse leaves the widget.
Parameters :
Returns :
void
|
onTap | ||||||||||||
onTap($event: TouchEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the tap event is triggered on a widget.
Parameters :
Returns :
void
|
class |
Type : string
|
Class of the widget. |
datavalue |
Type : string
|
Value to be shown in the text box. Bindable: |
disabled |
Type : boolean
|
This property will be used to disable/enable the widget on the web page. Bindable: |
hint |
Type : string
|
Hint text is shown for the widget on hover. Bindable: |
maxvalue |
Type : number
|
Maximum value for the number. Bindable: |
minvalue |
Type : number
|
Minimum value for number. Bindable: |
name |
Type : string
|
Name of the number widget. |
placeholder |
Type : string
|
Default value : 'Enter value'
|
Placeholder text for the widget. Bindable: |
readonly |
Type : boolean
|
This property will be used to make the widget non-editable on the web page. Bindable: |
required |
Type : boolean
|
This property defines if the number is a required field while form submission. Bindable: |
shortcutkey |
Type : string
|
The shortcut key property specifies a shortcut key to activate/focus an element. |
show |
Type : boolean
|
Default value : true
|
This property will be used to show/hide the widget on the web page. Bindable: |
step |
Type : number
|
This property will be used to increment/decrement the number value by the specified step interval. |
tabindex |
Type : number
|
Default value : 0
|
This property specifies the tab order of the Widget. |
trailingzero |
Type : boolean
|
Default value : false
|
This property specifies whether to keep trailing zeros after decimal point or not |