vuetning
Version:
<p align="center"> <img width="160"src="https://s3.amazonaws.com/arcthos.com/vuetning/logo.svg"> </p>
135 lines (134 loc) • 3.45 kB
TypeScript
import { type PropType } from "vue";
import type { DropdownOption } from "./dropdown-option";
declare const _default: import("vue").DefineComponent<{
bottomAlignment: BooleanConstructor;
centerAlignment: BooleanConstructor;
/**
* Option filter.
*/
filter: {
type: StringConstructor;
default: string;
};
/**
* Focused option value.
*/
focusedOption: PropType<DropdownOption>;
/**
* Indicates whether the dropdown is open.
*/
isOpen: {
type: BooleanConstructor;
required: true;
};
length: NumberConstructor;
/**
* Picklist options.
*/
options: {
type: PropType<DropdownOption[]>;
required: true;
};
rightAlignment: BooleanConstructor;
/**
* Selected option value.
*/
selectedOption: PropType<DropdownOption>;
/**
* Selected option values.
*/
selectedOptions: PropType<DropdownOption[]>;
/**
* Indicates whether this dropdown is showing a spinner.
*/
showSpinner: BooleanConstructor;
}, unknown, unknown, {
/**
* The animation name for the dropdown.
*/
dropdownAnimation(): string;
/**
* The CSS class names for the dropdown.
*/
dropdownClassNames(): string;
/**
* Indicates whether there are no options on this dropdown.
*/
isEmpty(): boolean;
}, {
/**
* Checks if a given options is selected.
* @param optionToCheck Option to be checked.
*/
checkForSelection(optionToCheck: DropdownOption): boolean;
/**
* Handles the click event on the option.
* @param option Clicked option.
*/
handleClickOption(option: DropdownOption): void;
/**
* Handles the mouse over event on the option.
* @param option Hovered option.
*/
handleMouseOverOption(option: DropdownOption): void;
/**
* Before enter animation.
* @param element DOM element.
*/
staggeredBeforeEnter(element: Element): void;
/**
* Enter animation.
* @param element DOM element.
* @param done Callback.
*/
staggeredEnter(element: Element, done: any): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
bottomAlignment: BooleanConstructor;
centerAlignment: BooleanConstructor;
/**
* Option filter.
*/
filter: {
type: StringConstructor;
default: string;
};
/**
* Focused option value.
*/
focusedOption: PropType<DropdownOption>;
/**
* Indicates whether the dropdown is open.
*/
isOpen: {
type: BooleanConstructor;
required: true;
};
length: NumberConstructor;
/**
* Picklist options.
*/
options: {
type: PropType<DropdownOption[]>;
required: true;
};
rightAlignment: BooleanConstructor;
/**
* Selected option value.
*/
selectedOption: PropType<DropdownOption>;
/**
* Selected option values.
*/
selectedOptions: PropType<DropdownOption[]>;
/**
* Indicates whether this dropdown is showing a spinner.
*/
showSpinner: BooleanConstructor;
}>>, {
filter: string;
showSpinner: boolean;
bottomAlignment: boolean;
centerAlignment: boolean;
rightAlignment: boolean;
}, {}>;
export default _default;