create license management
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { computed, effect, Injectable, signal } from '@angular/core';
|
||||
import { computed, effect, Injectable, signal, TemplateRef } from '@angular/core';
|
||||
import { MenuItem } from 'primeng/api';
|
||||
import { Subject } from 'rxjs';
|
||||
import { BehaviorSubject, Subject } from 'rxjs';
|
||||
|
||||
export interface layoutConfig {
|
||||
preset?: string;
|
||||
@@ -218,4 +218,11 @@ export class LayoutService {
|
||||
setPanelInfo(info: IPanelInfo) {
|
||||
this.panelInfo.set(info);
|
||||
}
|
||||
|
||||
private headerSlot = new BehaviorSubject<TemplateRef<any> | null>(null);
|
||||
headerSlot$ = this.headerSlot.asObservable();
|
||||
|
||||
setHeaderSlot(tpl: TemplateRef<any> | null) {
|
||||
this.headerSlot.next(tpl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user