Select fields let users choose one option from a dropdown list.
Standard select for choosing from a list of options
Contains: Default, Success, Error, Warning
Leading icon and optional trailing action icon
Select can be marked as optional or disabled
Optional
Individual options can be disabled
Use hint for tooltips and helper text for guidance
Import the select component and option interface in your module or component:
import-select.ts
Copy code
Here is a basic example of using the select component:
select-example.ts
Here is an example of using the select component with all available APIs:
select-example.html
Handle selection changes by listening to the (valueChange) and (valueCommit) events:
select-events.html
select-events.ts
You can disable specific options in the select dropdown:
select-disabled-options.ts
Each option in the options array should implement the VdSelectOption interface:
Customize the select features in this section
example.html
On this page