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

26 lines (25 loc) 1.57 kB
import { PlatformService } from '../../../services/platform.service'; import * as i0 from "@angular/core"; /** * A custom switch component that mimics the behavior of a checkbox input but with enhanced styling. * It supports all the standard attributes of an HTML input element of type "checkbox". * The appearance of the switch can be customized to match either a base or iOS platform style. */ export declare class SwitchComponent { platformService: PlatformService; private elementRef; /** The name attribute for the input */ name: import("@angular/core").InputSignal<string>; /** The value attribute for the input */ value: import("@angular/core").InputSignal<string>; /** Sets the checked state */ checked: import("@angular/core").InputSignal<boolean>; /** Sets the disabled state */ disabled: import("@angular/core").InputSignal<boolean>; /** Event emitted when the switch state changes */ change: import("@angular/core").OutputEmitterRef<Event>; /** Handler for change event */ onChange(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "tgui-switch", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, ["*"], true, never>; }