Use the KCombobox component to allow users to select one or multiple options from a standardized list, with support for searching and remote data providers.
Demonstrates smooth virtual pagination over a 500-item dataset with a page size of 20. Scrolling down automatically fetches the next page and dynamically virtualizes DOM nodes.
Scroll to load more pages...
TypeScript
// DataProvider configured with pageSize 20 and 500 items
const provider = new CFlatClientDataProvider({ pageSize: 20 })
provider.setData(Array.from({ length: 500 }, (_, i) => ({
id: i + 1,
label: `Option #${i + 1} (${['Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon'][i % 5]})`
})))
KCombobox(
label="Virtual Paginated Options"
:dataProvider="provider"
labelField="label"
valueField="id"
v-model="selectedId"
searchbox
closeOnSelect
placeholder="Scroll to load more pages..."
)
Validation States
Select state
Validation feedback on combobox
Attributes
Configure the KCombobox component using these attributes.