theme-lib
Version:
This is a simple example Angular Library published to npm.
26 lines (25 loc) • 936 B
TypeScript
import { TemplateRef, InjectionToken, ViewContainerRef } from '@angular/core';
import { ComponentType } from '@angular/cdk/overlay';
export declare enum NbWindowState {
MINIMIZED = "minimized",
MAXIMIZED = "maximized",
FULL_SCREEN = "full-screen"
}
export interface NbWindowStateChange {
oldState: NbWindowState;
newState: NbWindowState;
}
export declare class NbWindowConfig {
title: string;
initialState: NbWindowState;
hasBackdrop: boolean;
closeOnBackdropClick: boolean;
closeOnEsc: boolean;
windowClass: string;
context?: Object;
viewContainerRef: ViewContainerRef;
constructor(...configs: Partial<NbWindowConfig>[]);
}
export declare const NB_WINDOW_CONTENT: InjectionToken<TemplateRef<any> | ComponentType<any>>;
export declare const NB_WINDOW_CONFIG: InjectionToken<NbWindowConfig>;
export declare const NB_WINDOW_CONTEXT: InjectionToken<Object>;