Back to Devexpress

BootstrapClientListBox.InsertItem(index, texts) Method

aspnetbootstrap-js-bootstrapclientlistbox-dot-insertitem-x28-index-texts-x29.md

latest1.1 KB
Original Source

BootstrapClientListBox.InsertItem(index, texts) Method

Inserts a new item into the control’s items collection at the specified index.

Declaration

ts
InsertItem(
    index: number,
    texts: string[] | string,
    value?: any,
    iconCssClass?: string
): void

Parameters

NameTypeDescription
indexnumber

An integer value that represents the index position.

| | texts | string | string[] |

An array of strings that specifies the item’s display text. Array element positions relate to the positions of the corresponding field within the editor’s BootstrapListBox.Fields collection.

| | value | any |

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.

|

See Also

List Box

BootstrapClientListBox Class

BootstrapClientListBox Members