@sixbell-telco/sdk
Version:
A collection of reusable components designed for use in Sixbell Telco Angular projects
41 lines (40 loc) • 1.54 kB
TypeScript
import { ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Directive to mark an element as dropdown menu content
* This allows the trigger to reference the content without ng-template
*/
export declare class DropdownMenuContentDirective {
elementRef: ElementRef;
/**
* Unique identifier for this menu content
*/
contentId: import("@angular/core").InputSignal<string>;
constructor(elementRef: ElementRef);
/**
* Get the native element for CDK menu trigger
*/
get element(): HTMLElement;
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuContentDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownMenuContentDirective, "[stDropdownMenuContent]", ["dropdownMenuContent"], { "contentId": { "alias": "contentId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
}
/**
* Service to manage dropdown menu content references
*/
export declare class DropdownMenuService {
private readonly contentRegistry;
/**
* Register a menu content directive
*/
registerContent(id: string, directive: DropdownMenuContentDirective): void;
/**
* Unregister a menu content directive
*/
unregisterContent(id: string): void;
/**
* Get a registered menu content by ID
*/
getContent(id: string): DropdownMenuContentDirective | undefined;
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DropdownMenuService>;
}