UNPKG

@iotize/ionic

Version:

Iotize specific building blocks on top of @ionic/angular.

41 lines (40 loc) 1.68 kB
import { AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core'; import { IonToggle } from '@ionic/angular'; import { TapValueEditorContainerComponent } from '@iotize/ionic'; import { EditableValueDataStreamInterface } from '@iotize/tap/data'; import { Subscription } from 'rxjs'; import * as i0 from "@angular/core"; export declare class TapVariableToggleComponent implements AfterViewInit, OnDestroy { private changeDetectorRef; toggle: IonToggle; ctx: TapValueEditorContainerComponent; error?: Error; textOnLeft: string; textOnRight: string; lines: string; toggleColor: string; variable?: EditableValueDataStreamInterface<number, any>; editable: boolean; valueOn: number; valueOff: number; chip: { outline?: boolean; color?: string; }; chipOutline: boolean; _valueSub?: Subscription; private _lastValueDisplayed?; inputOptions: { type: string; }; constructor(changeDetectorRef: ChangeDetectorRef); ngAfterViewInit(): void; ngOnDestroy(): void; switchToggle(): void; onValueChange(event: CustomEvent<{ value: string; checked: boolean; }>): void; static ɵfac: i0.ɵɵFactoryDeclaration<TapVariableToggleComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TapVariableToggleComponent, "tap-variable-toggle", never, { "textOnLeft": "textOnLeft"; "textOnRight": "textOnRight"; "lines": "lines"; "toggleColor": "toggleColor"; "variable": "variable"; "editable": "editable"; "valueOn": "valueOn"; "valueOff": "valueOff"; "chip": "chip"; }, {}, never, never, false, never>; }