Quartz Headless docs/ToggleDirective

Search documentation

Type to search the documentation.

API: Primitives

ToggleDirective

Directive reference for ToggleDirective with the selector button[qzToggle].

Overview

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 Emits once per user activation (click, Enter, Space). Programmatic pressed writes are silent.

Properties

Name Type Description
readonly isDisabled Signal<boolean> Effective disabled state: the disabled input OR a disabled Angular Forms control.

Public methods

toggle

toggle(event?: Event): void
Parameter Type Optional Description
event Event Yes

setFormDisabled

setFormDisabled(disabled: boolean): void

Adapter hook for @quartz-headless/primitives/forms (setDisabledState).

Parameter Type Optional Description
disabled boolean