Ag Select
vue3 select component
Primitive model example
You can output a primitive value while your list is still with key and values as in the example below:
TypeScript×
- VueJS
- ReactJS
- Angular
- JavaScript
- Go
- Java
- Python
- ASP.NET
- C#
- Perl
- Swift
- TypeScript
- PHP
- Kotlin
- Ruby
- Rust
Model Value : 12
Object model example
If you need both key and value as an object binded to the component check this example:
VueJS×
- VueJS
- ReactJS
- Angular
- JavaScript
- Go
- Java
- Python
- ASP.NET
- C#
- Perl
- Swift
- TypeScript
- PHP
- Kotlin
- Ruby
- Rust
Model Value : {
"value": 1,
"text": "VueJS"
}
Select with search
Search functionality is optional you can enable it by just adding search attribute, see example below:
Model Value : {
"value": 3,
"text": "Angular"
}
Select from array of strings
You can populate the select list with array of primitives instead of objects, your model output will be primitive automatically.
Select Friend
- Ross
- Rachel
- Chandler
- Monica
- Joey
- Phoebe
Model Value :
Select With Custom Template
you can use option slot to customize the select item with your own template, see the example:
Model Value :