Checkbox

La case à cocher native avec un état indéterminé, associée à son libellé par un champ, pour les formulaires et les listes « tout sélectionner ».

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Utilisation

Partly read.

Importation

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

Référence de l’API

SoneCheckboxDirectiveDirective

`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.

Sélecteur
input[soneCheckbox]
Exporté sous
soneCheckbox
Inputs
NomType Par défaut
indeterminatebidirectionnel

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

booleanfalse