mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(multi-select): export multiSelectRef, fieldRef, selectionRef
This commit is contained in:
parent
b8786956e2
commit
aa5200cff5
5 changed files with 69 additions and 7 deletions
|
@ -128,6 +128,21 @@
|
|||
/** Obtain a reference to the input HTML element */
|
||||
export let inputRef = null;
|
||||
|
||||
/** Obtain a reference to the outer div element */
|
||||
export let multiSelectRef = null;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the field box element
|
||||
* @type {null | HTMLDivElement}
|
||||
*/
|
||||
export let fieldRef = null;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the selection element
|
||||
* @type {null | HTMLDivElement}
|
||||
*/
|
||||
export let selectionRef = null;
|
||||
|
||||
import { afterUpdate, createEventDispatcher, setContext } from "svelte";
|
||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
||||
import WarningAltFilled16 from "carbon-icons-svelte/lib/WarningAltFilled16/WarningAltFilled16.svelte";
|
||||
|
@ -143,10 +158,6 @@
|
|||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
let multiSelectRef = null;
|
||||
let fieldRef = null;
|
||||
let selectionRef = null;
|
||||
|
||||
let inputValue = "";
|
||||
let initialSorted = false;
|
||||
let highlightedIndex = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue