BootstrapClientListBox.AddItem(texts) Method
In This Article
Adds a new item to the editor, specifying the item’s display text, associated value and displayed image, and returns the index of the added item.
#Declaration
TypeScript
AddItem(
texts: string[] | string,
value?: any,
iconCssClass?: string
): number
#Parameters
Name | Type | Description |
---|---|---|
texts | string | string[] | |
value | any | An object that represents the item’s associated value. |
icon |
string | A String value specifying the CSS class of the image displayed by the list item. |
#Returns
Type | Description |
---|---|
number | An integer value representing the position to which the new item was added. |
See Also