UNPKG

carbon-components-angular

Version:
61 lines (57 loc) 2.24 kB
/** * * carbon-angular v0.0.0 | sidenav-menu.component.d.ts * * Copyright 2014, 2024 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { AfterContentInit, QueryList, OnDestroy } from "@angular/core"; import { SideNavItem } from "./sidenav-item.component"; import { Subscription } from "rxjs"; import { SideNavItemInterface } from "./sidenav-item.interface"; import * as i0 from "@angular/core"; /** * `SideNavMenu` provides a method to group `SideNavItem`s under a common heading. */ export declare class SideNavMenu implements AfterContentInit, OnDestroy { navItem: boolean; navItemIcon: boolean; get navItemActive(): boolean; role: string; /** * Use the routerLink attribute on <a> tag for navigation instead of using event handlers */ useRouter: boolean; /** * Heading for the group */ title: string; /** * Controls the visibility of the child `SideNavItem`s */ expanded: boolean; /** * Controls the active status indicator on the menu if there is an active * child sidenav item. */ hasActiveChild: boolean; menuItems: SideNavItemInterface[]; sidenavItems: QueryList<SideNavItem>; protected activeItemsSubscription: Subscription; ngAfterContentInit(): void; ngOnDestroy(): void; toggle(): void; protected findActiveChildren(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SideNavMenu, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SideNavMenu, "cds-sidenav-menu, ibm-sidenav-menu", never, { "useRouter": "useRouter"; "title": "title"; "expanded": "expanded"; "hasActiveChild": "hasActiveChild"; "menuItems": "menuItems"; }, {}, ["sidenavItems"], ["svg, [icon]", "*"], false>; }