LgTagBox
Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Category: Input
Inherits from: LgInputBase<List<string>>
Component to input a list of text values.
Parameters
| Parameter | Type | Description |
|---|---|---|
AllowDuplicates | bool | When true, the same tag can be added multiple times. (default: false) |
AutoUnmask | bool | Get or set the flag indicating if value should be returned without the mask. |
ClearIncomplete | bool | Get or set the flag indicating if value should be clear if mask is incomplete. |
ConfirmKeys | List<int> | Array of keycodes which will add a tag when typing in the input. (default: [13, 59, 44], which are ENTER, semicolon and comma). |
Delimiter | string | delimeter used to join values. (default: semi-colon) |
InputMask | string | Gets or sets the input mask |
InputMaskKind | InputMaskKind | Gets or sets the input mask kind |
InputMaskPlaceholder | string | Gets or sets the input mask |
MaxChars | int? | Defines the maximum length of a single tag. (default: undefined) |
MaxTags | int? | When set, no more than the given number of tags are allowed to add (default: undefined). When maxTags is reached, a class 'bootstrap-tagsinput-max' is placed on the tagsinput element. |
NoWrap | bool | When true, the input height is fixed. If there is more value tag than possible to display, an horizontal scroll bar is displayed in the tagbox. |
OnChangingAsync | Func<ChangingEventArgs<List<string>>, Task> | Gets or sets a callback called before the current value is changed. |
Placeholder | string | Gets or sets the select placeholder |
TagCssClass | string | Gets or sets the tag CssClass (default : "label label-info") |
Parameters inherited from LgInputBase<TValue>
| Parameter | Type | Description |
|---|---|---|
AdditionalAttributes | IReadOnlyDictionary<string, object> | Gets or sets a collection of additional attributes that will be applied to the created element. |
AutoFocus | bool | Gets or sets if the component received the focus on first render |
ConfirmationMessage | string | Gets or sets if the component display confirmation modal with the message |
Container | IInputContainer<TValue> | Used to attach a GridView cell to this input. |
CssClass | string | Gets or sets the CSS class. |
Disabled | bool | Gets or sets the input disabled attribute |
DisplayName | string | Gets or sets the display name for this field. This value is used when generating error messages when the input value fails to parse correctly. |
HideValidationMessage | bool | Get or set validator state |
Label | string | Gets or sets the label |
LabelContent | RenderFragment | Gets or sets the render fragment to customize the label part |
OnChange | EventCallback<ChangeEventArgs> | Gets or sets a callback called after a the current value changed. |
OnReset | EventCallback<ChangeEventArgs> | Gets or sets the call when the input is reset. |
PolicyEdit | string | Policy required to edit the TextBox |
PolicyVisible | string | Policy required to view the TextBox |
ReadOnly | bool | Gets or sets the input readonly attribute |
Required | bool? | Get or sets if this field is mandatory. If this parameter is null or not defined, the value is extracted from the [Required] attribute on the binding property. |
ResetButton | bool? | Display reset button if true |
ResetText | string | Reset button text |
ResetTextAriaLabel | string | Reset button ariaLabel text |
Tooltip | string | Gets or sets the tooltip. |
TooltipIsHtml | bool | Gets or sets if the tooltip contents use the HTML format; else, the content use a raw text format. |
Value | TValue | Gets or sets the value of the input. This should be used with two-way binding. |
ValueChanged | EventCallback<TValue> | Gets or sets a callback that updates the bound value. |
ValueExpression | Expression<Func<TValue>> | Gets or sets an expression that identifies the bound value. |
Cascading parameters inherited from LgInputBase<TValue>
| Parameter | Type | Description |
|---|---|---|
ParentAuthorizeView | LgAuthorizeView | Potential policies defined by an ancestor |
Parameters inherited from LgAriaComponentBase
| Parameter | Type | Description |
|---|---|---|
AriaLabel | string | Gets or sets aria label |
AriaLabelledBy | string | Gets or sets id of component for aria label |