UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

49 lines (48 loc) 2.11 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core'; import { Router, RouterLink, RouterLinkWithHref } from '@angular/router'; import { BooleanInput } from 'ng-zorro-antd/core/types'; import { Subject } from 'rxjs'; import { MenuService } from './menu.service'; import { NzSubmenuService } from './submenu.service'; export declare class NzMenuItemDirective implements OnInit, OnChanges, OnDestroy, AfterContentInit { private nzMenuService; private cdr; private nzSubmenuService; isMenuInsideDropDown: boolean; private routerLink?; private routerLinkWithHref?; private router?; static ngAcceptInputType_nzDisabled: BooleanInput; static ngAcceptInputType_nzSelected: BooleanInput; static ngAcceptInputType_nzMatchRouterExact: BooleanInput; static ngAcceptInputType_nzMatchRouter: BooleanInput; private destroy$; level: number; selected$: Subject<boolean>; inlinePaddingLeft: number | null; nzPaddingLeft: number; nzDisabled: boolean; nzSelected: boolean; nzMatchRouterExact: boolean; nzMatchRouter: boolean; listOfRouterLink: QueryList<RouterLink>; listOfRouterLinkWithHref: QueryList<RouterLinkWithHref>; /** clear all item selected status except this */ clickMenuItem(e: MouseEvent): void; setSelectedState(value: boolean): void; private updateRouterActive; private hasActiveLinks; private isLinkActive; constructor(nzMenuService: MenuService, cdr: ChangeDetectorRef, nzSubmenuService: NzSubmenuService, isMenuInsideDropDown: boolean, routerLink?: RouterLink | undefined, routerLinkWithHref?: RouterLinkWithHref | undefined, router?: Router | undefined); ngOnInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; }