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

BootstrapClientTagBox.AddTag(text) Method

Adds a new tag with the specified text to the end of the control's tag collection.

Declaration

AddTag(text: string): void

Parameters

Name Type Description
text string

A string value specifying the tag's text.

Remarks

Use the AddTag method to add a tag with the specified text to the end of the BootstrapTagBox.Tags collection. To remove a tag by its text, use the BootstrapClientTagBox.RemoveTokenByText method.

NOTE

Tags in a collection must be unique, so adding a tag with text which is already contained in the collection does nothing.

See Also