Checkbox

La casilla de verificación nativa con estado indeterminado, emparejada con su etiqueta mediante un campo, para formularios y listas de «seleccionar todo».

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

Uso

Partly read.

Importación

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

Referencia de la API

SoneCheckboxDirectiveDirectiva

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

Selector
input[soneCheckbox]
Exportar como
soneCheckbox
Inputs
NombreTipo Predeterminado
indeterminatebidireccional

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

booleanfalse