This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
v0.7.0
feat: MultiDropdownButton
Usage:
Create controller in setup or anywehere and
give generic type to use
const IndexedText {
id: string
text: string
}
const multiDropdownController = new MutliDropdownFieldController<IndexedText>(
{ keyofValue: 'id' }
)
Then use MultiDropdownButton with DropdownMenuItem in items
to make it work
MultiDropdownButton({
controller: multiDropdownController,
items: dropdownItems.map((el) =>
DropdownMenuItem({
child: Text({
text: ref(el.text),
}),
value: el,
key: el.id,
title: el.text,
})
),
}),
To get or change selected values use:
controller.value