mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
test(dropdown): assert let:item, let:index
This commit is contained in:
parent
cbcafdd886
commit
afa1b774ac
1 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,12 @@
|
||||||
on:select="{(e) => {
|
on:select="{(e) => {
|
||||||
console.log(e.detail.selectedId);
|
console.log(e.detail.selectedId);
|
||||||
}}"
|
}}"
|
||||||
/>
|
let:item
|
||||||
|
let:index
|
||||||
|
>
|
||||||
|
{item.id}
|
||||||
|
{index}
|
||||||
|
</Dropdown>
|
||||||
|
|
||||||
<Dropdown
|
<Dropdown
|
||||||
itemToString="{(item) => {
|
itemToString="{(item) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue