projects/components/widgets/input/chips/src/chips.component.doc.ts
The wmChips component defines the chips widget.
Methods |
Inputs |
onAdd | ||||||||||||||||
onAdd($event: MouseEvent, widget: any, $item: Object)
|
||||||||||||||||
Callback function which will be triggered on chip addition.
Parameters :
Returns :
void
|
onBeforeadd | ||||||||||||||||
onBeforeadd($event: MouseEvent, widget: any, newItem: Object)
|
||||||||||||||||
Callback function which will be triggered before adding the chip. If this function returns false then chip will not be added.
Parameters :
Returns :
void
|
onBeforeremove | ||||||||||||||||
onBeforeremove($event: MouseEvent, widget: any, $item: Object)
|
||||||||||||||||
Callback function which will be triggered before removing the chip. If this function returns false then chip will not be removed.
Parameters :
Returns :
void
|
onBeforereorder | ||||||||||||||||||||
onBeforereorder($event: MouseEvent, widget: any, $data: Array
|
||||||||||||||||||||
Callback function which will be triggered before the chip item is reordered.
Parameters :
Returns :
void
|
onBeforeservicecall | ||||||||||||
onBeforeservicecall(widget: any, inputData: Object)
|
||||||||||||
Callback function which will be triggered before the service call.
Parameters :
Returns :
void
|
onChange | ||||||||||||||||||||
onChange($event: MouseEvent, widget: any, newVal: Array
|
||||||||||||||||||||
Callback function which will be triggered when datavalue has changed.
Parameters :
Returns :
void
|
onChipclick | ||||||||||||||||
onChipclick($event: MouseEvent, widget: any, newVal: Object)
|
||||||||||||||||
Callback function which will be triggered when chip is clicked.
Parameters :
Returns :
void
|
onChipselect | ||||||||||||||||
onChipselect($event: MouseEvent, widget: any, newVal: Object)
|
||||||||||||||||
Callback function which will be triggered upon chip selection.
Parameters :
Returns :
void
|
onRemove | ||||||||||||||||
onRemove($event: MouseEvent, widget: any, $item: Object)
|
||||||||||||||||
Callback function which will be triggered on removing chip.
Parameters :
Returns :
void
|
onReorder | ||||||||||||||||||||
onReorder($event: MouseEvent, widget: any, $data: Array
|
||||||||||||||||||||
Callback function which will be triggered on reordering of chips.
Parameters :
Returns :
void
|
allowonlyselect |
Type : boolean
|
Default value : false
|
This property will restrict adding values other than the values in the dropdown, if set to true.
By default there is no restriction |
autofocus |
Type : boolean
|
Default value : false
|
This property makes the widget get focused automatically when the page loads. |
chipclass |
Type : string
|
Class to be applied on each of the chip item. Bindable: |
class |
Type : string
|
Class of the widget. |
datafield |
Type : string
|
This property sets the dataValue to be returned by the chips widget when the list is populated using the dataSet property. |
dataset |
Type : Array<any> | Object
|
Default value : 'Option 1, Option 2, Option 3'
|
datavalue |
Type : any
|
This property defines the initial selected value of the chips widget. This adds the default chip items. Bindable: |
disabled |
Type : boolean
|
This property will be used to disable the chips widget.
If the disabled property is true (checked), the widget becomes display-only. Bindable: |
displayexpression |
Type : string
|
This is an advanced property that gives more control over what is displayed in the drop-down select list.
A Display Expression uses a JavaScript expression to format exactly what is shown Bindable: |
displayfield |
Type : string
|
This property sets the displayValue to show in the chip's search results when the list is populated using the dataSet property. |
displayimagesrc |
Type : string
|
Picture source sets the image to be displayed in the search results. Bindable: |
enablereorder |
Type : boolean
|
This property will allow users to reorder the chip items if set to true. Bindable: |
limit |
Type : number
|
This property limits the search results to be displayed in the widget |
minchars |
Type : number
|
Default value : 1
|
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 chips widget. |
orderby |
Type : string
|
Allows to display the data in asc or desc order based on this property |
placeholder |
Type : string
|
This property specifies the placeholder for the search input in chips. Bindable: |
query |
Type : string
|
This property contains the entered text in the search input of chips. |
readonly |
Type : boolean
|
This property will be used to make the chips widget non-editable. Bindable: |
searchkey |
Type : string
|
This is the property to be searched upon, in the dataset |
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 chips widget. Bindable: |
showsearchicon |
Type : boolean
|
This property shows the search icon when set to true. This value is false when type is set to autocomplete. |
tabindex |
Type : number
|
Default value : 0
|
This property specifies the tab order of the Chip widget. |
type |
Type : string
|
Default value : 'search'
|
This property specifies type of search to be shown in the chips. Allowed Values:
|