API: Primitives
ToggleDirective
Directive reference for ToggleDirective with the selector button[qzToggle].
Overview
- Kind: Directive
- Export as:
qzToggle - Source: packages/primitives/src/toggle/toggle.directive.ts:20
Selector
button[qzToggle]
Inputs
| Input | Type | Default | Required | Description |
|---|---|---|---|---|
disabled |
unknown |
false |
Transform booleanAttribute; reads as boolean. |
Models
Two-way bindings: each model is an input and emits the matching change output.
| Model | Type | Default | Required | Change output | Description |
|---|---|---|---|---|---|
pressed |
boolean |
false |
pressedChange |
Outputs
| Output | Payload | Description |
|---|---|---|
pressedChangeCommitted |
boolean |
Public methods
toggle
toggle(event?: Event): void
| Parameter | Type | Optional | Description |
|---|---|---|---|
event |
Event |
Yes |