@acusti/dropdown
Version:
React component that renders a dropdown with a trigger and supports searching, keyboard access, and more
50 lines (48 loc) • 1.4 kB
Flow
/**
* Flowtype definitions for helpers
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.20.1
* @flow
*/
declare export var ITEM_SELECTOR: '[data-ukt-item], [data-ukt-value]';
declare export var getItemElements: (
dropdownElement: HTMLElement | null,
) => HTMLCollection | NodeListOf<Element> | null;
declare export var getActiveItemElement: (
dropdownElement: HTMLElement | null,
) => HTMLElement | null;
declare export var setActiveItem: (
x:
| {|
dropdownElement: HTMLElement,
element: HTMLElement,
index?: null,
indexAddend?: null,
isExactMatch?: null,
text?: null,
|}
| {|
dropdownElement: HTMLElement,
element?: null,
index: number,
indexAddend?: null,
isExactMatch?: null,
text?: null,
|}
| {|
dropdownElement: HTMLElement,
element?: null,
index?: null,
indexAddend: number,
isExactMatch?: null,
text?: null,
|}
| {|
dropdownElement: HTMLElement,
element?: null,
index?: null,
indexAddend?: null,
isExactMatch?: boolean,
text: string,
|},
) => void;