@aotearoan/neon
Version:
Neon is a lightweight design library of Vue 3 components with minimal dependencies.
48 lines (47 loc) • 1.73 kB
TypeScript
import type { NeonTreeMenuSectionModel } from '@/common/models/NeonTreeMenuSectionModel';
/**
* Three level tree menu. This is useful for displaying a hierarchical navigation in NeonSideNav.The top level of the
* menu is expandable on click but will not navigate to a page. The second level is links to pages and the third level
* is the fragments on that page.
*/
declare const _default: import("vue").DefineComponent<{
/**
* The tree model defining the menu.
*/
model: {
type: () => Array<NeonTreeMenuSectionModel>;
required: true;
};
/**
* Expand all nodes in the tree, this is useful for providing filtering (e.g. the Neon showcase side navigation menu).
*/
expandAll: {
type: BooleanConstructor;
default: boolean;
};
}, {
url: import("vue").Ref<string | null>;
click: ($event: KeyboardEvent) => void;
onClick: (key: string) => void;
fragment: (anchor: string) => string;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* The tree model defining the menu.
*/
model: {
type: () => Array<NeonTreeMenuSectionModel>;
required: true;
};
/**
* Expand all nodes in the tree, this is useful for providing filtering (e.g. the Neon showcase side navigation menu).
*/
expandAll: {
type: BooleanConstructor;
default: boolean;
};
}>> & {
onClick?: ((...args: any[]) => any) | undefined;
}, {
expandAll: boolean;
}, {}>;
export default _default;