mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat: support item.disabled
key for Dropdown
, MultiSelect
, ComboBox
(#1328)
Closes #1326 * feat: support item.disabled key for `Dropdown`, `MultiSelect`, `ComboBox` * Run "yarn build:docs" * test: assert disabled property * docs: add "Disabled items" examples
This commit is contained in:
parent
22f93ee675
commit
f25a10c9c4
16 changed files with 150 additions and 19 deletions
|
@ -5,7 +5,7 @@
|
|||
const items: ComboBoxItem[] = [
|
||||
{ id: 0, text: "Slack" },
|
||||
{ id: "1", text: "Email" },
|
||||
{ id: "2", text: "Fax" },
|
||||
{ id: "2", text: "Fax", disabled: true },
|
||||
];
|
||||
|
||||
let ref: ComboBox;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
items="{[
|
||||
{ id: 0, text: 'Slack' },
|
||||
{ id: '1', text: 'Email' },
|
||||
{ id: '2', text: 'Fax' },
|
||||
{ id: '2', text: 'Fax', disabled: true },
|
||||
]}"
|
||||
on:select="{(e) => {
|
||||
console.log(e.detail.selectedId);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
items="{[
|
||||
{ id: 0, text: 'Slack' },
|
||||
{ id: '1', text: 'Email' },
|
||||
{ id: '2', text: 'Fax' },
|
||||
{ id: '2', text: 'Fax', disabled: true },
|
||||
]}"
|
||||
on:select="{(e) => {
|
||||
console.log(e.detail.selectedIds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue