projects/components/widgets/input/textarea/src/textarea.component.doc.ts
The wmTextarea component defines the textarea 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
|
| autofocus |
Type : boolean
|
|
This property makes the widget get focused automatically when the page loads. |
| class |
Type : string
|
Default value : 'btn-default'
|
|
Class of the widget. |
| datavalue |
Type : string
|
|
Value of the textarea widget. Bindable: |
| disabled |
Type : boolean
|
|
This property will be used to disable/enable the textarea widget on the web page. Bindable: |
| hint |
Type : string
|
|
Hint text is shown for the textarea widget on hover. Bindable: |
| maxchars |
Type : number
|
|
Maximum number of characters that are allowed in the widget. |
| name |
Type : string
|
|
Name of the textarea widget. |
| placeholder |
Type : string
|
|
Placeholder for the textarea. |
| readonly |
Type : boolean
|
Default value : false
|
|
This property doesnot allow to change the value in the textarea widget. Bindable: |
| required |
Type : boolean
|
Default value : false
|
|
This property will be used to make the textarea widget readonly on the web page. 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 textarea widget on the web page. Bindable: |
| tabindex |
Type : number
|
Default value : 0
|
|
This property specifies the tab order of the textarea Widget. |
| updateon |
Type : string
|
Default value : 'blur'
|
|
Updates the textarea value based on the event type. Event Types:
|