Back to Devexpress

BootstrapClientListBox.AddItem(texts) Method

aspnetbootstrap-js-bootstrapclientlistbox-dot-additem-x28-texts-x29.md

latest979 B
Original Source

BootstrapClientListBox.AddItem(texts) Method

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

ts
AddItem(
    texts: string[] | string,
    value?: any,
    iconCssClass?: string
): number

Parameters

NameTypeDescription
textsstringstring[]
valueany

An object that represents the item’s associated value.

| | iconCssClass | string |

A String value specifying the CSS class of the image displayed by the list item.

|

Returns

TypeDescription
number

An integer value representing the position to which the new item was added.

|

See Also

List Box

BootstrapClientListBox Class

BootstrapClientListBox Members