A newer version of this page is available. Switch to the current version.

BootstrapClientTagBox.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.


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


Name Type Description
texts string[] | string

The item’s display text(s).

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.


Type Description

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

See Also