/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/material/select/select-panel-class/select-panel-class-example.ts
20 строк
778 B
Kristiyan Kostadinov
docs: remove standalone flag from examples
17 окт 2024, 17:40
17 окт 2024, 17:40
36f4cca
Код
Авторство
О чём код?
import {Component, ViewEncapsulation} from '@angular/core'; import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatSelectModule} from '@angular/material/select'; import {MatFormFieldModule} from '@angular/material/form-field'; /** * @title Select with custom panel styling */ @Component({ selector: 'select-panel-class-example', templateUrl: 'select-panel-class-example.html', styleUrl: 'select-panel-class-example.css', // Encapsulation has to be disabled in order for the // component style to apply to the select panel. encapsulation: ViewEncapsulation.None, imports: [MatFormFieldModule, MatSelectModule, FormsModule, ReactiveFormsModule], }) export class SelectPanelClassExample { panelColor = new FormControl('red'); }