Skip to main content

LgSuggestBox

Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Category: Suggest
Inherits from: LgSuggestBoxBase<string>

A suggest box component.

Parameters inherited from LgSuggestBoxBase<TItem>​

ParameterTypeDescription
ControllerUristringGets or sets remote data url
DropDownMaxHeightintGets or sets dropdown maximal height in pixel
FilterTextSearchModeFilterTextSearchModeGets or sets the search text mode (containe by default)
HighlightTextboolHilghlight founded text into result list
ItemContentRenderFragment<TItem>Gets or sets child item result content
ItemsIEnumerable<TItem>Gets or sets the items source
MaxItemsInViewintDefine the number of items displayed from the search result. Default : 8 Set to 0 to display all results.
MinSearchCharacterintMinimal input length before the search is fired
SeeAllEnabledboolDisplay a "See All" button to get all data
TextFilterCollationCollationType?Gets or sets the type of case and accent sensitivity.

Parameters inherited from LgTextBox​

ParameterTypeDescription
AllowResizeboolAllow the textbox to be resized (false by default).
AutoCompleteboolGets or sets the flag indicating if the browser should automatically complete the input.
AutoUnmaskboolGets or sets the flag indicating if value should be returned without the mask.
ClearIncompleteboolGets or sets the flag indicating if value should be clear if mask is incomplete.
DataListList<string>Gets or sets the datalist
InputMaskstringGets or sets the input mask
InputMaskKindInputMaskKindGets or sets the input mask kind
InputMaskPlaceholderstringGets or sets the character (or string) filling the empty positions of the input mask.
MaxLengthint?Gets or sets the maximum number of characters entered
MaxRowsint?Gets or sets the maximum number of lines shown when TextMode is TextBoxMode.Multiline.
MinRowsint?Gets or sets the maximum number of lines shown when TextMode is TextBoxMode.Multiline.
OnChangeDisabledboolGets or sets if the OnChange event is disabled.
OnChangingAsyncFunc<ChangingEventArgs<string>, Task>Gets or sets a callback called before the current value is changed.
OnFocusEventCallback<FocusEventArgs>Gets or sets a callback called on the onfocus event.
OnInputEventCallback<ChangeEventArgs>Gets or sets a callback called on each change of the text typed in the input.
OnKeyUpEventCallback<KeyboardEventArgs>Gets or sets a callback called on the onkey event.
PlaceholderstringGets or sets the input placeholder
Rowsint?The number of lines when TextMode is TextBoxMode.Multiline.
TextModeTextBoxMode?Gets or sets input text mode.

Parameters inherited from LgInputRenderBase<TValue>​

ParameterTypeDescription
PrefixstringGets or sets the input prefix.
PrefixTypeInputLabelTypeIndicate if prefix is simple text or icon from library.
SuffixstringGets or sets the input suffix.
SuffixTypeInputLabelTypeIndicate if suffix is simple text or icon from library. (Default: Text)

Parameters inherited from LgInputBase<TValue>​

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

Cascading parameters inherited from LgInputBase<TValue>​

ParameterTypeDescription
ParentAuthorizeViewLgAuthorizeViewPotential policies defined by an ancestor

Parameters inherited from LgAriaComponentBase​

ParameterTypeDescription
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label