Skip to main content

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

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.

iconCssClass 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