Custom Checkboxes with Angular 2+

Checkboxes with Angular 2+

This is a very simple library to create custom checkboxes with Angular 2+ projects.This library use pretty-checkbox to create the customs checkboxes.

Checkbox label The checkbox label is provided as the content to the <mat-checkbox> element. The label can be positioned before or after the checkbox by setting the labelPosition property to 'before' or 'after'.

If you don’t want the label to appear next to the checkbox, you can use aria-label or aria-labelledby to specify an appropriate label.

 Use with @angular/forms

<mat-checkbox> is compatible with @angular/forms and supports both FormsModule and ReactiveFormsModule.

 Indeterminate state

<mat-checkbox> supports an indeterminate state, similar to the native <input type="checkbox">. While the indeterminate property of the checkbox is true, it will render as indeterminate regardless of the checkedvalue. Any interaction with the checkbox by a user (i.e., clicking) will remove the indeterminate state.

Free jquery plugins


0 Comments

Curated for You

Popular

Top Contributors more

Latest blog