preline
Version:
Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
33 lines (30 loc) • 809 B
text/typescript
export interface IComboBoxOptions {
gap?: number;
viewport?: string | HTMLElement | null;
preventVisibility?: boolean;
apiUrl?: string | null;
apiDataPart?: string | null;
apiQuery?: string | null;
apiSearchQuery?: string | null;
apiHeaders?: {};
apiGroupField?: string | null;
outputItemTemplate?: string | null;
outputEmptyTemplate?: string | null;
outputLoaderTemplate?: string | null;
groupingType?: "default" | "tabs" | null;
groupingTitleTemplate?: string | null;
tabsWrapperTemplate?: string | null;
preventSelection?: boolean;
preventAutoPosition?: boolean;
isOpenOnFocus?: boolean;
}
export interface IComboBox {
options?: IComboBoxOptions;
open(): void;
close(): void;
recalculateDirection(): void;
}
export interface IComboBoxItemAttr {
valueFrom: string;
attr: string;
}