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
32 lines (31 loc) • 1.14 kB
TypeScript
import { Type } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Service that provides platform-specific typography components for Cell
* Similar to the React useTypographyCellComponents hook
*/
export declare class TypographyCellService {
private platformService;
/**
* Returns the appropriate component type for the title based on platform
* iOS: TextComponent
* Android/Web: SubheadlineComponent with level 1
*/
getTitleComponent(): Type<any>;
/**
* Returns the appropriate component type for the description based on platform
* iOS: CaptionComponent
* Android/Web: SubheadlineComponent with level 2
*/
getDescriptionComponent(): Type<any>;
/**
* Returns the level to use for title component if it's a SubheadlineComponent
*/
getTitleLevel(): string;
/**
* Returns the level to use for description component if it's a SubheadlineComponent
*/
getDescriptionLevel(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyCellService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TypographyCellService>;
}