From 5f3230cb7b574c9f058be19b5b1d4cf4153d288a Mon Sep 17 00:00:00 2001
From: "fandi.susanto.bts" Forms
- Select
CSelect styles a native single-value select and supports either data-driven
- options or ordinary HTML option slots.
+ CSelect is a single-value selection control. It uses a native select by
+ default and can become a searchable combobox for longer data-driven lists.
option-label to choose the displayed field. When
option-value is omitted, selecting an option binds the complete object. Use
- option-key to provide stable rendering identity.
+ option-key to provide stable rendering identity. Add clearable when
+ users should be able to return the model to null.
+ Add filterable when a long list should be searchable. Typing narrows the
+ available options but does not create a new value: v-model changes only when
+ the user selects an existing option. Use CAutoComplete later when arbitrary
+ user-entered values should be allowed.
+
+ This mode works with data-driven options. Use Arrow Up or Arrow Down to move,
+ Enter to select, and Escape to discard the current search and restore the selected label.
+
@@ -142,7 +185,9 @@ const objectUsage = `
Use the default slot when native option or optgroup markup is more
- convenient. Data-driven and slotted options can also be combined.
+ convenient. Data-driven and slotted options can also be combined. Slotted options are
+ available in the default native mode; filterable reads from the
+ options prop instead.
option-labeloption-valueoption-keyclearablenull.filterableplaceholdersizesmall, medium, or large.disabledrequiredrequiredinvalidaria-invalid.