/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.html
40 строк
1 KB
Miles Malerba
docs(material/checkbox): Update checkbox docs & examples (#29234)
13 июн 2024, 01:28
Не верифицирован
13 июн 2024, 01:28
d783233
Код
Авторство
О чём код?
<mat-card> <mat-card-content> <h2 class="example-h2">Checkbox configuration</h2> <section class="example-section"> <mat-checkbox class="example-margin" [(ngModel)]="checked">Checked</mat-checkbox> <mat-checkbox class="example-margin" [(ngModel)]="indeterminate">Indeterminate</mat-checkbox> </section> <section class="example-section"> <label class="example-margin">Align:</label> <mat-radio-group [(ngModel)]="labelPosition"> <mat-radio-button class="example-margin" value="after">After</mat-radio-button> <mat-radio-button class="example-margin" value="before">Before</mat-radio-button> </mat-radio-group> </section> <section class="example-section"> <mat-checkbox class="example-margin" [(ngModel)]="disabled">Disabled</mat-checkbox> </section> </mat-card-content> </mat-card> <mat-card class="result"> <mat-card-content> <h2 class="example-h2">Result</h2> <section class="example-section"> <mat-checkbox class="example-margin" [(ngModel)]="checked" [(indeterminate)]="indeterminate" [labelPosition]="labelPosition()" [disabled]="disabled()" > I'm a checkbox </mat-checkbox> </section> </mat-card-content> </mat-card>