Select & MultiSelect components
Last updated
Was this helpful?
Last updated
Was this helpful?
Lowcoder offers versatile selection components—Select and Multi-Select—to enhance user input capabilities in your applications. These components allow users to choose single or multiple options from a list, with support for both static and dynamic data sources.
The Select component enables users to choose a single option from a dropdown list. It's ideal for scenarios where only one selection is permitted.
Single Selection: Allows selection of one option from the list.
Manual and Dynamic Data Entry: Supports both manually entered options and dynamic data binding from APIs or databases.
Customisable Display: Configure labels, values, and placeholder text to match application requirements.
Event Handling: Trigger actions based on user interactions, such as selection changes.
Manual Mode: Manually define options with specific labels and values.
Mapped Mode: Bind options dynamically from data sources like APIs or databases.
Default Value: Set an initial selected value for the dropdown.
Disabled State: Disable the dropdown to prevent user interaction when necessary.
Hidden State: Hide the dropdown from view without removing it from the layout.
On Component Playground, you can interact with the Dropdown component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Dropdown component.
In the Auto-Docs of Dropdown component, we have shown how to use different properties of the Dropdown component. It also includes the Styling properties of the Dropdown component.
The Multi-Select component allows users to select multiple options from a list, suitable for scenarios requiring multiple selections.
Multiple Selection: Users can select multiple options simultaneously.
Manual and Dynamic Data Entry: Supports both manually entered options and dynamic data binding from APIs or databases.
Customizable Display: Configure labels, values, and placeholder text to match application requirements.
Event Handling: Trigger actions based on user interactions, such as selection changes.
Manual Mode: Manually define options with specific labels and values.
Mapped Mode: Bind options dynamically from data sources like APIs or databases.
Default Values: Set initial selected values for the dropdown.
Disabled State: Disable the dropdown to prevent user interaction when necessary.
Hidden State: Hide the dropdown from view without removing it from the layout.
Data Binding: Use {{ }}
syntax to bind the selected value(s) to other components or queries. For example:
Event Handling: Implement event handlers to respond to selection changes and trigger corresponding actions.
On Component Playground, you can interact with the Dropdown component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Dropdown component.
In the Auto-Docs of Dropdown component, we have shown how to use different properties of the Dropdown component. It also includes the Styling properties of the Dropdown component.
These properties are accessible in {{ }} notations, as well as in JavaScript Queries.
value
String
Returns the current selected value of the Select/Multi-Select component
disabled
Boolean
Returns True or False based on whether the Select/Multi-Select component is disabled or not
hidden
Boolean
Returns True or False based on whether the Select/Multi-Select component is hidden or not
invalid
Boolean
Returns True or False based on whether the Select/Multi-Select component is valid or not
inputValue
String
Returns the Input value entered by User while searching for the options in Select/Multi-Select component
selectedIndex
Number
Returns the Index of the selected option in the Select component
selectedLabel
String
Returns the Label of the selected option in the Select component
Events give you the ability to trigger further actions (with Event-Handlers).
Change
When a User "changes" anything on the component.
Focus
When a User "clicks" on the input field of the Component
Blur
When a User "clicks" outside of the input field of the Component i.e, defocuses the component.
You have the capability to engage with components via their respective methods, which can be accessed by their designated names within any segment where JavaScript is utilized. Additionally, these components can be activated through the 'Control Component' action, which is triggered in response to specific events.
setValue() :
select1.setValue() method sets the Select component's Value property, which gets shown in the Select component.
clearValue() :
select1.clearValue() clears the Select component's Value property and empties the value from the Select component.
resetValue() :
select1.resetValue() method resets the Select component's value property to the default value of the Select component.
setDefaultValue() :
select1.setDefaultValue() method sets the Select component's Default value, which gets shown in the Select component as default.
clearDefaultValue() :
select1.clearDefaultValue() clears the Select component's Default value and empties the value from the Select component.
resetDefaultValue() :
select1.resetDefaultValue() method resets the Select component's Default value to the default value of the Select component.
Form Inputs: Collect user selections in forms, such as choosing a country or category.
Filtering Data: Allow users to filter displayed data based on selected criteria.
Tagging Systems: Enable users to tag items with multiple labels or categories.