TagTextBox
Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field.
Last updated
Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field.
Last updated
The TagTextBox is an easy way for users to select a range of values.
By default, the TagTextBox control will automatically resize to fit its contents. This includes font size changes and tag overflow.
To get the TagTextBox control to grow horizontally, set the MaximumSize property of the control.
The TagTextBox control allows selecting from a list of preset items defined in the AutoCompleteList property.
The drop down is showing using an <input> element with a specified <datalist>.
The MaxLength, MaxTagCount, MaxTagWidth, and MinFieldLength properties provide options to configure the maximum tag length and count.
MaxLength: Specifies the maximum number of characters that can be entered into the edit control.
MaxTagCount: Returns or sets the maximum number of tags allowed in the control.
MaxTagWidth: Returns or sets the maximum width in pixels of the tag widgets.
MinFieldLength: Returns or sets the minimum number of characters that should fit in the editable portion of the control before it wraps to a new line.
The colors of the tags in the TagTextBox control can be customized using the Theme Builder, a mixin, or applied directly in code.
The tagtextbox appearance has a child component, tag, which can be customized based on any of it's given states.
The custom TagTextBox appearance can be applied using a mixin in the project.
Add the mixin definition above to the /Themes directory in your project.
The theme can be modified at runtime to include the custom TagTextBox appearance.
Item | Description |
---|---|
Class name | "wisej.web.TagTextBox" |
Theme Appearance | "tagtextbox", inherited from "textbox". |
Child components | "textfield" is the inner <input> widget. See JavaScript. |
Toolcontainer state | "editor", see Embedded Tools. |
Source code |