projects/components/widgets/basic/search/src/search.component.doc.ts
The wmSearch component defines the search widget.
Methods |
Inputs |
onBeforeservicecall | ||||||||||||
onBeforeservicecall(widget: any, inputData: Object)
|
||||||||||||
Callback function which will be triggered before the service call.
Parameters :
Returns :
void
|
onBlur | ||||||||||||
onBlur($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget loses focus.
Parameters :
Returns :
void
|
onChange | ||||||||||||||||||||
onChange($event: MouseEvent, widget: any, newVal: any, oldVal: any)
|
||||||||||||||||||||
Callback function which will be triggered when the widget is clicked or when datavalue has changed.
Parameters :
Returns :
void
|
onFocus | ||||||||||||
onFocus($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget gets focused.
Parameters :
Returns :
void
|
onSelect | ||||||||||||||||
onSelect($event: MouseEvent, widget: any, selectedValue: any)
|
||||||||||||||||
Callback function which will be triggered on selecting a item from the search results.
Parameters :
Returns :
void
|
onSubmit | ||||||||||||
onSubmit($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered on the search submit.
Parameters :
Returns :
void
|
class |
Type : string
|
Class of the widget. |
datacompletemsg |
Type : string
|
Default value : 'No more data to load'
|
This message will be displayed when there is no more data to load. |
datafield |
Type : string
|
This property sets the dataValue to be returned by the search widget when the list is populated using the dataSet property. |
datavalue |
Type : any
|
This property defines the initial selected value of the search widget. Bindable: |
disabled |
Type : boolean
|
This property will be used to disable the search widget.
If the disabled property is true (checked), the widget becomes display-only. Bindable: |
displayimagesrc |
Type : string
|
Picture source sets the image to be displayed in the search results. Bindable: |
displaylabel |
Type : string
|
This property sets the displayValue to show in the search widget when the list is populated using the dataSet property. Bindable: |
dropup |
Type : boolean
|
This property sets the typeahead dropdown position. If set to true, dropdown will be shown above the input. By default dropup is false |
hint |
Type : string
|
Hint text is shown for the search widget on hover. Bindable: |
imagewidth |
Type : string
|
Default value : '16px'
|
Picture width property allows to set the width of the picture. |
limit |
Type : number
|
This property limits the search results to be displayed in the widget |
loadingdatamsg |
Type : string
|
Default value : 'Loading items...'
|
This message will be displayed when waiting for data to load. |
minchars |
Type : number
|
The minchars attribute specifies the number of characters that need to be entered before the query is triggered. It must be greater than or equal to 0. |
name |
Type : string
|
Name of the search widget. |
orderby |
Type : string
|
Allows to display the data in asc or desc order based on this property |
placeholder |
Type : string
|
The placeholder for the search box. Bindable: |
query |
Type : string
|
This property contains the entered text in the search input. |
readonly |
Type : boolean
|
This property will be used to make the search widget non-editable. Bindable: |
required |
Type : boolean
|
This property will be used to validate the state of the search widget when used inside a form widget. Bindable: |
searchkey |
Type : string
|
This is the property to be searched upon, in the list object |
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 search widget. Bindable: |
showsearchicon |
Type : boolean
|
This property shows the search icon when set to true. This value is false for autocomplete. |
tabindex |
Type : number
|
Default value : 0
|
This property specifies the tab order of the search widget. |
type |
Type : string
|
Default value : 'search'
|
This property specifies type of search. Allowed Values:
|