mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
test: assert disabled property
This commit is contained in:
parent
b8aab465bb
commit
d53421a321
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
const items: ComboBoxItem[] = [
|
const items: ComboBoxItem[] = [
|
||||||
{ id: 0, text: "Slack" },
|
{ id: 0, text: "Slack" },
|
||||||
{ id: "1", text: "Email" },
|
{ id: "1", text: "Email" },
|
||||||
{ id: "2", text: "Fax" },
|
{ id: "2", text: "Fax", disabled: true },
|
||||||
];
|
];
|
||||||
|
|
||||||
let ref: ComboBox;
|
let ref: ComboBox;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
items="{[
|
items="{[
|
||||||
{ id: 0, text: 'Slack' },
|
{ id: 0, text: 'Slack' },
|
||||||
{ id: '1', text: 'Email' },
|
{ id: '1', text: 'Email' },
|
||||||
{ id: '2', text: 'Fax' },
|
{ id: '2', text: 'Fax', disabled: true },
|
||||||
]}"
|
]}"
|
||||||
on:select="{(e) => {
|
on:select="{(e) => {
|
||||||
console.log(e.detail.selectedId);
|
console.log(e.detail.selectedId);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
items="{[
|
items="{[
|
||||||
{ id: 0, text: 'Slack' },
|
{ id: 0, text: 'Slack' },
|
||||||
{ id: '1', text: 'Email' },
|
{ id: '1', text: 'Email' },
|
||||||
{ id: '2', text: 'Fax' },
|
{ id: '2', text: 'Fax', disabled: true },
|
||||||
]}"
|
]}"
|
||||||
on:select="{(e) => {
|
on:select="{(e) => {
|
||||||
console.log(e.detail.selectedIds);
|
console.log(e.detail.selectedIds);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue