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
33 lines (32 loc) • 1.48 kB
TypeScript
import { EventEmitter } from '@angular/core';
import * as i0 from "@angular/core";
/**
* SegmentedControlItem component represents an individual item within a SegmentedControl.
* It can be interactively selected to display associated content.
*/
export declare class SegmentedControlItemComponent {
/** External parameter to mark item as selected */
selected: import("@angular/core").InputSignal<boolean>;
/** Internal signal to manage selection state */
private _isSelected;
/** Computed value that considers both sources (internal has priority) */
isSelectedValue: import("@angular/core").Signal<boolean>;
/** Event triggered when the item is clicked */
select: EventEmitter<void>;
/** Platform service to check platform type */
private platformService;
constructor();
/** Check if platform is iOS */
get isIOS(): boolean;
/** Bind selected class to host */
get isSelected(): boolean;
/** Handle click on the item */
onClick(): void;
/**
* Public method to set the selection state
* from the parent component
*/
setSelected(value: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedControlItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentedControlItemComponent, "tgui-segmented-control-item", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, ["*"], true, never>;
}