Checkbox @ngb-bootstrap/core/checkbox
<ngb-checkbox>Component
NgbCheckbox
.check over a native <input type="checkbox"> . The projected
content is the label. The model is value ( true / false ), the same name every ngb form
control uses, so [(value)] , [(ngModel)] and formControlName all work.
<ngb-checkbox [(value)]="accepted" hint="You can change this later.">Accept the terms</ngb-checkbox>
<ngb-checkbox formControlName="all" [indeterminate]="some()">Select all</ngb-checkbox>| Name | Type | Default |
|---|---|---|
[(value)][(value)] . | Tnull | null |
[disabled]disabled input. Forms can also disable the control. | boolean | false |
[invalid] | boolean | undefined |
[(indeterminate)] | boolean | false |
[hint]aria-describedby . | string | — |
[color].theme-* ). Defaults to the control colour. | NgbThemeColor | — |
[size]sm , md (default) or lg . | NgbCheckSize | 'md' |
NgbCheckSizeType
type NgbCheckSize = 'sm' | 'md' | 'lg'