tgui-angular
Version:
🚀 Angular UI library for Telegram Web Apps with modern components and theming support | 💼 Author is open to work opportunities | 📧 Contact: a.blagovestnov@gmail.com | 💬 Telegram: @ablagovestnov
34 lines (33 loc) • 1.24 kB
TypeScript
import { ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Service for managing portal container references
* Provides functionality for components to render content outside of their DOM hierarchy
*/
export declare class PortalService {
private readonly portalContainerRef;
readonly portalContainer: import("@angular/core").Signal<ElementRef<HTMLElement> | null>;
readonly hasPortalContainer: import("@angular/core").Signal<boolean>;
constructor();
/**
* Set the portal container reference
* This is typically called by the TGUIRootComponent
*/
setPortalContainer(elementRef: ElementRef<HTMLElement>): void;
/**
* Clear the portal container reference
* This should be called when the container is destroyed
*/
clearPortalContainer(): void;
/**
* Get the current portal container element
* Returns the native DOM element or null if not set
*/
getPortalContainerElement(): HTMLElement | null;
/**
* Check if portal container is ready for use
*/
isPortalReady(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<PortalService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<PortalService>;
}