theme-lib
Version:
This is a simple example Angular Library published to npm.
57 lines (56 loc) • 1.96 kB
TypeScript
import { OnInit, OnDestroy, ElementRef, OnChanges } from '@angular/core';
import { Subscription } from 'rxjs';
import { NbThemeService } from '../../services/theme.service';
import { NbSidebarService } from './sidebar.service';
export declare class NbSidebarHeaderComponent {
}
export declare class NbSidebarFooterComponent {
}
export declare class NbSidebarComponent implements OnChanges, OnInit, OnDestroy {
private sidebarService;
private themeService;
private element;
static readonly STATE_EXPANDED: string;
static readonly STATE_COLLAPSED: string;
static readonly STATE_COMPACTED: string;
static readonly RESPONSIVE_STATE_MOBILE: string;
static readonly RESPONSIVE_STATE_TABLET: string;
static readonly RESPONSIVE_STATE_PC: string;
protected stateValue: string;
protected responsiveValue: boolean;
private alive;
containerFixedValue: boolean;
fixedValue: boolean;
rightValue: boolean;
leftValue: boolean;
startValue: boolean;
endValue: boolean;
readonly expanded: boolean;
readonly collapsed: boolean;
readonly compacted: boolean;
right: boolean;
left: boolean;
start: boolean;
end: boolean;
fixed: boolean;
containerFixed: boolean;
state: string;
responsive: boolean;
tag: string;
compactedBreakpoints: string[];
collapsedBreakpoints: string[];
private mediaQuerySubscription;
private responsiveState;
constructor(sidebarService: NbSidebarService, themeService: NbThemeService, element: ElementRef);
toggleResponsive(enabled: boolean): void;
ngOnChanges(changes: any): void;
ngOnInit(): void;
ngOnDestroy(): void;
onClick(event: any): void;
collapse(): void;
expand(): void;
compact(): void;
toggle(compact?: boolean): void;
protected onMediaQueryChanges(): Subscription;
protected responsiveEnabled(): boolean;
}