UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

26 lines (25 loc) 1.07 kB
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; import { TemplateHolder, UiStateService } from '../services/ui-state.service'; import * as i0 from "@angular/core"; /** * Dynamically change page header content based on active template. * * Usage: * If you want to customize a page header, wrap a template with *aclPageHeaderContent. * * eg: * <ng-container *aclPageHeaderContent> * ... YOUR TEMPLATE CONTENT * </ng-container> */ export declare class PageHeaderContentDirective implements OnInit, OnDestroy { private readonly templateRef; private readonly viewContainerRef; private readonly uiState; templateHolder: TemplateHolder; constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, uiState: UiStateService); ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderContentDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<PageHeaderContentDirective, "[aclPageHeaderContent]", never, {}, {}, never, never, true, never>; }