Checkbox

Das native Kontrollkästchen mit unbestimmtem Zustand, über ein Feld mit seiner Beschriftung verbunden, für Formulare und „Alle auswählen“-Listen.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: verfügbar

Verwendung

Partly read.

Import

ts
import {
  SoneCheckboxDirective,
} from "@surface-one/angular/checkbox";

API-Referenz

SoneCheckboxDirectiveDirektive

`input[soneCheckbox]` — the native checkbox (spartan/ui Checkbox, native first): it stays an `<input type="checkbox">`, so `[checked]`, `(change)`, `ngModel`, `formControl`, `required` and a `<label for>` all work as they do on any checkbox, and the global form styles draw it. The directive adds the mixed state the markup cannot express: `[(indeterminate)]`, cleared when the user toggles it.

Selektor
input[soneCheckbox]
Export als
soneCheckbox
Inputs
NameTyp Standard
indeterminatebidirektional

The mixed state ("some of them") — `[(indeterminate)]`; a click clears it.

booleanfalse