Blazorise Specifications: Autocomplete
Learn how the Autocomplete works and behaves under the certain scenarios, according to the defined parameters
When active, the Autocomplete will attempt to select the first option upon initializing. This will trigger the change events.
This is specially usefull when you've specified
This option is only available when the Autocomplete is in
When disabled, the first option in the
Autocomplete suggestion's box will no longer be "PreSelected".
This is specially useful for a corner case.
If you would like your User to input a Free typed value (by using
FreeTyping) you might want to consider disabling this option.
In this manner, your User may Enter a similar value to the one's suggested by the
Autocomplete, however this will make it so the confirmation Key does not Select the "PreSelected" option.
Please note the following simple example, where we would like a user to be able to commit a value of 10000 as their Employee Id, even tough there are suggestions based on that same number.
|AutoPreSelect||AutoPreSelect Disabled||Pressing the commit key will commit the first option.||Pressing the commit key will not commit the first option, as it is not PreSelected.|
Autocomplete will close the suggestion's box upon the value being confirmed.
However you might want it to remain open, this is specially usefull if you have the
Autocomplete set to
Here's an example:
Parameter is quite self descriptive, it'll start displaying eligibile options from a defined minimum length, it defaults to the value of 1.
A recurring question, is how to display every
Autocomplete option upon focus.
Parameter to the value of 0 is how you do it.
Sometimes it's important to know when to expect a
EventCallback will trigger.
The following table displays some common combinations which we find important for you to know.
Triggers If |
Triggers If |
|User Input||Triggers Always||