Aller au contenu principal

LgTagBox

Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Catégorie : Input
Hérite de : LgInputBase<List<string>>

Component to input a list of text values.

Paramètres​

ParamètreTypeDescription
AllowDuplicatesboolWhen true, the same tag can be added multiple times. (default: false)
AutoUnmaskboolGet or set the flag indicating if value should be returned without the mask.
ClearIncompleteboolGet or set the flag indicating if value should be clear if mask is incomplete.
ConfirmKeysList<int>Array of keycodes which will add a tag when typing in the input. (default: [13, 59, 44], which are ENTER, semicolon and comma).
Delimiterstringdelimeter used to join values. (default: semi-colon)
InputMaskstringGets or sets the input mask
InputMaskKindInputMaskKindGets or sets the input mask kind
InputMaskPlaceholderstringGets or sets the input mask
MaxCharsint?Defines the maximum length of a single tag. (default: undefined)
MaxTagsint?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.
NoWrapboolWhen 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.
OnChangingAsyncFunc<ChangingEventArgs<List<string>>, Task>Gets or sets a callback called before the current value is changed.
PlaceholderstringGets or sets the select placeholder
TagCssClassstringGets or sets the tag CssClass (default : "label label-info")

Paramètres hérités de LgInputBase<TValue>​

ParamètreTypeDescription
AdditionalAttributesIReadOnlyDictionary<string, object>Gets or sets a collection of additional attributes that will be applied to the created element.
AutoFocusboolGets or sets if the component received the focus on first render
ConfirmationMessagestringGets or sets if the component display confirmation modal with the message
ContainerIInputContainer<TValue>Used to attach a GridView cell to this input.
CssClassstringGets or sets the CSS class.
DisabledboolGets or sets the input disabled attribute
DisplayNamestringGets or sets the display name for this field. This value is used when generating error messages when the input value fails to parse correctly.
HideValidationMessageboolGet or set validator state
LabelstringGets or sets the label
LabelContentRenderFragmentGets or sets the render fragment to customize the label part
OnChangeEventCallback<ChangeEventArgs>Gets or sets a callback called after a the current value changed.
OnResetEventCallback<ChangeEventArgs>Gets or sets the call when the input is reset.
PolicyEditstringPolicy required to edit the TextBox
PolicyVisiblestringPolicy required to view the TextBox
ReadOnlyboolGets or sets the input readonly attribute
Requiredbool?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.
ResetButtonbool?Display reset button if true
ResetTextstringReset button text
ResetTextAriaLabelstringReset button ariaLabel text
TooltipstringGets or sets the tooltip.
TooltipIsHtmlboolGets or sets if the tooltip contents use the HTML format; else, the content use a raw text format.
ValueTValueGets or sets the value of the input. This should be used with two-way binding.
ValueChangedEventCallback<TValue>Gets or sets a callback that updates the bound value.
ValueExpressionExpression<Func<TValue>>Gets or sets an expression that identifies the bound value.

Paramètres en cascade hérités de LgInputBase<TValue>​

ParamètreTypeDescription
ParentAuthorizeViewLgAuthorizeViewPotential policies defined by an ancestor

Paramètres hérités de LgAriaComponentBase​

ParamètreTypeDescription
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label