Represents the Essential JS 2 Angular ChipList Component.
<ejs-chiplist></ejs-chiplist>
string
Specifies the icon CSS class for the avatar in the chip.
Defaults to ”
string
Specifies the customized text value for the avatar in the chip.
Defaults to ”
string[]
| number[]
| ChipModel[]
This chips property helps to render ChipList component.
Defaults to []
string
Specifies the custom classes to be added to the chip element used to customize the ChipList component.
Defaults to ”
boolean
Enables or disables the delete functionality of a chip.
Defaults to false
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
boolean
Specifies a value that indicates whether the chip component is enabled or not.
Defaults to true
string
Specifies the leading icon CSS class for the chip.
Defaults to ”
string
Specifies the trailing icon url for the chip.
Defaults to ”
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
string[]
| number[]
| number
Sets or gets the selected chip items in the chip list.
Defaults to []
string
Defines the selection type of the chip. The available types are:
Defaults to ‘None’
string
Specifies the text content for the chip.
Defaults to ”
string
Specifies the trailing icon CSS class for the chip.
Defaults to ”
string
Specifies the trailing icon url for the chip.
Defaults to ”
Allows adding the chip item(s) by passing a single or array of string, number, or ChipModel values.
Parameter | Type | Description |
---|---|---|
chipsData | string[] | number[] | ChipModel[] | string | number | ChipModel |
We can pass array of string or array of number or array of chip model or string data or number data or chip model. |
Returns void
Removes the component from the DOM and detaches all its related event handlers. Also, it removes the attributes and classes.
Returns void
A function that finds chip based on given input.
Parameter | Type | Description |
---|---|---|
fields | number | HTMLElement |
We can pass index number or element of chip. |
Returns ChipDataArgs
Returns the selected chip(s) data.
Returns SelectedItem | SelectedItems
Allows removing the chip item(s) by passing a single or array of string, number, or ChipModel values.
Parameter | Type | Description |
---|---|---|
fields | number | number[] | HTMLElement | HTMLElement[] |
We can pass number or array of number or chip element or array of chip element. |
Returns void
Allows selecting the chip item(s) by passing a single or array of string, number, or ChipModel values.
Parameter | Type | Description |
---|---|---|
fields | number | number[] | HTMLElement | HTMLElement[] | string[] |
We can pass number or array of number or chip element or array of chip element. |
Returns void
Triggers before the click event of the chip is fired. This event can be used to prevent the further process and restrict the click action over a chip.
Triggers when a chip is clicked.
EmitType<Event>
Triggers when the component is created successfully.
Fires before removing the chip element.