Overview

tng-slide-toggle is an on/off toggle that implements ControlValueAccessor. Value is boolean. Optional label; klass hooks for root, label, and track/thumb with base + on/off state (trackOnKlass, trackOffKlass, thumbOnKlass, thumbOffKlass).

CVA label track/thumb on/off
Reactive Forms

Quick example

Basic
HTMLTSCSS

<form [formGroup]="form">
  <tng-slide-toggle formControlName="enabled" label="Enable feature" />
</form>

Value: false

Features

Value: boolean

Form value is true or false.

Klass hooks (base + on/off)

rootKlass, labelKlass, inputKlass; base trackKlass/thumbKlass; per-state trackOnKlass, trackOffKlass, thumbOnKlass, thumbOffKlass.