gov-gui
Version:
Gov UI Component Library Typscript Build
37 lines (36 loc) • 1.16 kB
TypeScript
import { AnimationProps } from '../../global/animation-helpers';
export declare class GovMenubar implements AnimationProps {
/** The type of menu: 'horizontal', 'vertical', or 'sticky' */
type: 'horizontal' | 'vertical' | 'sticky';
/** The menu items passed as an array of objects */
items: string | {
label: string;
link?: string;
icon?: string;
subItems?: {
label: string;
link?: string;
icon?: string;
subSubItems?: {
label: string;
link?: string;
icon?: string;
}[];
}[];
}[];
parsedItems: any[];
animation?: string;
animationDelay?: '2s' | '3s' | '4s' | '5s';
animationSpeed?: 'slow' | 'slower' | 'fast' | 'faster';
private allClasses;
watchAnimations(): void;
watchAnimationsDelay(): void;
watchAnimationsSpeed(): void;
componentWillLoad(): void;
provideClass(): void;
handleItems(): void;
provideItems(): void;
renderSubItems(subItems: any): any;
handleItemClick(event: MouseEvent, link?: string): void;
render(): any;
}