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

26 lines (25 loc) 1.16 kB
import { ElementRef, OnDestroy, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { ActionBarLayerModel } from './model/action-bar-layer.model'; import { ContextualActionBarService } from './ngx-contextual-action-bar.service'; import { CdkPortalOutlet, ComponentPortal } from '@angular/cdk/portal'; export declare class ContextualActionBarComponent implements OnInit, OnDestroy { private service; content: ElementRef<HTMLElement>; outlet: CdkPortalOutlet; netScroll$: Observable<number>; scroll: Observable<number>; scrollThreshold: number; layer$: Observable<ActionBarLayerModel | undefined>; group: string; navbarState$: Observable<string>; button$: Observable<[string | undefined, string | undefined]>; shadow$: Observable<boolean>; contentState$: Observable<'none' | 'regular' | 'prominent'>; layerSwitchTrigger$: Observable<string | undefined>; customElement$: Observable<ComponentPortal<any> | undefined>; constructor(service: ContextualActionBarService); handleButtonClick(id: string): void; ngOnInit(): void; ngOnDestroy(): void; }