mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
test: assert updated element prop types
This commit is contained in:
parent
fe2e00425f
commit
81d9bb6e03
2 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
let ref: ComboBox;
|
let ref: ComboBox;
|
||||||
|
let listRef: HTMLDivElement = null;
|
||||||
|
|
||||||
$: ref?.clear();
|
$: ref?.clear();
|
||||||
</script>
|
</script>
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
titleText="Contact"
|
titleText="Contact"
|
||||||
placeholder="Select contact method"
|
placeholder="Select contact method"
|
||||||
items="{items}"
|
items="{items}"
|
||||||
|
bind:listRef
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ComboBox
|
<ComboBox
|
||||||
|
|
|
@ -9,13 +9,16 @@
|
||||||
import CopyFile16 from "carbon-icons-svelte/lib/CopyFile16";
|
import CopyFile16 from "carbon-icons-svelte/lib/CopyFile16";
|
||||||
import Cut16 from "carbon-icons-svelte/lib/Cut16";
|
import Cut16 from "carbon-icons-svelte/lib/Cut16";
|
||||||
|
|
||||||
|
let target: HTMLElement = null;
|
||||||
let selectedId = "0";
|
let selectedId = "0";
|
||||||
let selectedIds = [];
|
let selectedIds = [];
|
||||||
|
|
||||||
$: console.log("selectedId", selectedId);
|
$: console.log("selectedId", selectedId);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ContextMenu open on:open="{(e) => console.log(e.detail)}">
|
<div bind:this="{target}"></div>
|
||||||
|
|
||||||
|
<ContextMenu open on:open="{(e) => console.log(e.detail)}" bind:target>
|
||||||
<ContextMenuOption
|
<ContextMenuOption
|
||||||
kind="danger"
|
kind="danger"
|
||||||
indented
|
indented
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue