# toggleswitch

```ts
import { ToggleSwitchModule } from '@anguless/angulux/toggleswitch';
```

## ToggleSwitch

`agl-toggleswitch, agl-toggleSwitch, agl-toggle-switch` — component

Inherits every input, output and slot of `BaseEditableHolder` — see [baseeditableholder.md](baseeditableholder.md).

ToggleSwitch is used to select a boolean value.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `styleClass` | `string \| undefined` | _not documented_ | Style class of the component. **Deprecated:** since v20.0.0, use `class` instead. |
| `tabindex` | `number \| undefined` | _not documented_ | Index of the element in tabbing order. |
| `inputId` | `string \| undefined` | _not documented_ | Identifier of the input element. |
| `readonly` | `boolean \| undefined` | _not documented_ | When present, it specifies that the component cannot be edited. |
| `trueValue` | `any` | _not documented_ | Value in checked state. |
| `falseValue` | `any` | _not documented_ | Value in unchecked state. |
| `ariaLabel` | `string \| undefined` | _not documented_ | Used to define a string that autocomplete attribute the current element. |
| `size` | `'large' \| 'small' \| undefined` | `undefined` | Specifies the size of the component. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
| `autofocus` | `boolean \| undefined` | _not documented_ | When present, it specifies that the component should automatically get focus on load. |

| Output | Type | Description |
| --- | --- | --- |
| `onChange` | `EventEmitter<ToggleSwitchChangeEvent>` | Callback to invoke when the on value change. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #handle>` | `handleTemplate` | Custom handle template. |
