UNPKG

ngx-contextual-action-bar

Version:

ngx-contextual-action-bar is an Angular2+ implementation of the [Material Design Contextual Action Bar](https://material.io/components/app-bars-top#contextual-action-bar). The implementation makes it possible to change the action bar properties (i.e. titl

31 lines (30 loc) 1.19 kB
import { ContextualActionBarService } from './ngx-contextual-action-bar.service'; import { Observable } from 'rxjs'; import { ActionBarLayerModel, ActionBarLayer } from './model/action-bar-layer.model'; export declare class ActionBarLayerRegistration<T = any> { private service; private _layer; constructor(service: ContextualActionBarService, _layer: ActionBarLayerModel); instance: T | undefined; get onCustomElementReady(): Observable<any>; get onButtonClick(): Observable<void>; get onActionClick(): Observable<string>; get layer(): ActionBarLayerModel; /** * * @param layer Object containing properties to update */ setLayer(layer: Partial<ActionBarLayer>): void; unregister(): void; } export declare class ActionBarLayerToggleRegistration { private service; private _layer; private _toggleLayer; private toggled; constructor(service: ContextualActionBarService, _layer: ActionBarLayerModel, _toggleLayer: ActionBarLayerModel); get onButtonClick(): Observable<number>; get onActionClick(): Observable<[number, string]>; toggleLayer(): void; unregister(): void; }