@nethesis/vue-components
Version:
This library contains: - a collection of Vue 3 components based on [Flowbite](https://flowbite.com/) - a set of utility functions
49 lines • 1.65 kB
TypeScript
import type { ButtonSize } from './NeButton.vue';
export type SortOption = {
id: string;
label: string;
};
export interface Props {
label: string;
options: SortOption[];
openMenuAriaLabel: string;
sortByLabel: string;
sortDirectionLabel: string;
ascendingLabel: string;
descendingLabel: string;
alignToRight?: boolean;
size?: ButtonSize;
disabled?: boolean;
id?: string;
}
type __VLS_Props = Props;
type __VLS_PublicProps = __VLS_Props & {
'sortKey'?: string;
'sortDescending'?: boolean;
};
declare var __VLS_16: {}, __VLS_18: {};
type __VLS_Slots = {} & {
button?: (props: typeof __VLS_16) => any;
} & {
label?: (props: typeof __VLS_18) => any;
};
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:sortKey": (value: string | undefined) => any;
"update:sortDescending": (value: boolean | undefined) => any;
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
"onUpdate:sortKey"?: ((value: string | undefined) => any) | undefined;
"onUpdate:sortDescending"?: ((value: boolean | undefined) => any) | undefined;
}>, {
size: ButtonSize;
disabled: boolean;
id: string;
alignToRight: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};
//# sourceMappingURL=NeSortDropdown.vue.d.ts.map