mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
add ref to ListBoxMenu
This commit is contained in:
parent
0b9688dc2b
commit
6eeeebec6a
1 changed files with 7 additions and 0 deletions
|
@ -4,9 +4,16 @@
|
|||
* @type {string} [id]
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
/**
|
||||
* Obtain a reference to the input HTML element
|
||||
* @type {null | HTMLInputElement} [ref=null]
|
||||
*/
|
||||
export let ref = null;
|
||||
</script>
|
||||
|
||||
<div
|
||||
bind:this={ref}
|
||||
role="listbox"
|
||||
id="menu-{id}"
|
||||
class:bx--list-box__menu="{true}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue