UNPKG

@taiga-ui/kit

Version:
29 lines (28 loc) 1.28 kB
import { ChangeDetectorRef } from '@angular/core'; import { NgControl } from '@angular/forms'; import { AbstractTuiControl, TuiFocusableElementAccessor, TuiNativeFocusableElement } from '@taiga-ui/cdk'; import { TuiAppearance, TuiBrightness, TuiModeDirective, TuiSizeL, TuiSizeXS } from '@taiga-ui/core'; export declare class TuiToggleComponent extends AbstractTuiControl<boolean> implements TuiFocusableElementAccessor { private readonly modeDirective; singleColor: boolean; showIcons: boolean; showLoader: boolean; size: TuiSizeL; private readonly focusableElement?; constructor(control: NgControl | null, changeDetectorRef: ChangeDetectorRef, modeDirective: TuiModeDirective | null); get nativeFocusableElement(): TuiNativeFocusableElement | null; get focused(): boolean; get appearance(): TuiAppearance; get sizeM(): boolean; get checked(): boolean; get iconOn(): string; get iconOff(): string; get loaderSize(): TuiSizeXS; get hostMode(): TuiBrightness | null; onChecked(checked: boolean): void; onFocused(focused: boolean): void; onHovered(hovered: boolean): void; onPressed(pressed: boolean): void; onFocusVisible(focusVisible: boolean): void; protected getFallbackValue(): boolean; }