/** * @slot logo - Slot for the navigation logo. It may be optionally a link/ * @slot hamburger - Slot for the mobile navigation hamburger button, including icon. This button will open the mobile nav drawer, which houses the navigation links. * @slot mobile-link - Slot for link within the mobile drawer navigation. */ export class OjpNavigation { /** * 1. Own Properties * Note that because these properties * do not have the @Prop() decorator, they will not be exposed * publicly on the host element, but only used internally. */ observer: any; /** * 2. Reference to host HTML element. * Inlined decorator */ el: any; /** * 3. State() variables * Inlined decorator, alphabetical order. */ open: boolean; /** * 4. Public Property API * Inlined decorator, alphabetical order. These are * different from "own properties" in that public props * are exposed as properties and attributes on the host element. * Requires JSDocs for public API documentation. */ /** * 5. Events section * Inlined decorator, alphabetical order. * Requires JSDocs for public API documentation. */ /** * Triggered when the component is visible in the viewport */ elementIsVisible: any; /** * Triggered when the component has left the viewport */ elementIsInvisible: any; /** * Triggered when the mobile menu drawer opens & closes (boolean) */ ojpNavigationMobileDrawerOpen: any; /** * 6. Component lifecycle events * Ordered by their natural call order, for example * WillLoad should go before DidLoad. */ componentDidLoad(): void; /** * 7. Listeners * It is ok to place them in a different location * if it makes more sense in the context. Recommend * starting a listener method with "on". * Always use two lines. */ onWindowResize(): void; handleKeydown(event: any): void; /** * 8. Public methods API * These methods are exposed on the host element. * Always use two lines. * Public Methods must be async. * Requires JSDocs for public API documentation. */ /** * 9. Local methods * Internal business logic. These methods cannot be * called from the host element. */ handleClick: () => void; handleIntersection: (entries: any) => Promise; preventBodyScrolling(): void; toggleOpen: () => void; /** * 10. render() function * Always the last public method in the class. * If private methods present, they are below public methods. */ render(): any; }