UNPKG

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

38 lines (37 loc) • 1.88 kB
import { TemplateRef, AfterContentInit, QueryList } from '@angular/core'; import * as i0 from "@angular/core"; /** * The Section component organizes content into separate sections with optional * headers and footers. It automatically wraps strings and numbers in appropriate * SectionHeader and SectionFooter components, and inserts dividers between * child elements. */ export declare class SectionComponent implements AfterContentInit { /** * Content for the section header. If a string is passed, SectionHeader is automatically used. * For more control or a large header, use <tgui-section-header large>...</tgui-section-header>. */ header?: string | number | TemplateRef<any>; /** * Content for the section footer. If a string is passed, SectionFooter is automatically used. * For centered footer, use <tgui-section-footer centered>...</tgui-section-footer>. */ footer?: string | number | TemplateRef<any>; headerTemplate?: TemplateRef<any>; footerTemplate?: TemplateRef<any>; contentNodes: QueryList<TemplateRef<any>>; contentProjections: TemplateRef<any>[]; get headerContent(): string | number | null; get footerContent(): string | number | null; ngAfterContentInit(): void; /** * Checks if the value is a primitive (string or number) */ isPrimitive(value: any): boolean; /** * Checks if the content is a primitive */ isPrimitiveContent(content: any): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "tgui-section", never, { "header": { "alias": "header"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; }, {}, ["headerTemplate", "footerTemplate", "contentNodes"], ["tgui-section-header", "*", "tgui-section-footer"], true, never>; }