/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/material/select/select-selectable-null/select-selectable-null-example.html
19 строк
610 B
Kristiyan Kostadinov
fix(material/select): add opt-in input that allows selection of nullable options (#30142)
10 дек 2024, 23:47
Не верифицирован
10 дек 2024, 23:47
0296713
Код
Авторство
О чём код?
<h4>mat-select allowing selection of nullable options</h4> <mat-form-field> <mat-label>State</mat-label> <mat-select [(ngModel)]="value" canSelectNullableOptions> @for (option of options; track option) { <mat-option [value]="option.value">{{option.label}}</mat-option> } </mat-select> </mat-form-field> <h4>mat-select with default configuration</h4> <mat-form-field> <mat-label>State</mat-label> <mat-select [(ngModel)]="value"> @for (option of options; track option) { <mat-option [value]="option.value">{{option.label}}</mat-option> } </mat-select> </mat-form-field>