Angular material docs updated,

+ @angular/material-moment-adapter added to package.json
This commit is contained in:
mustafahlvc
2017-11-17 18:35:43 +03:00
parent 142fc982ca
commit 76358f996e
112 changed files with 1697 additions and 1041 deletions

View File

@@ -0,0 +1,11 @@
.example-panel-red .mat-select-content {
background: rgba(255, 0, 0, 0.5);
}
.example-panel-green .mat-select-content {
background: rgba(0, 255, 0, 0.5);
}
.example-panel-blue .mat-select-content {
background: rgba(0, 0, 255, 0.5);
}

View File

@@ -0,0 +1,8 @@
<mat-form-field>
<mat-select placeholder="Panel color" [formControl]="panelColor"
panelClass="example-panel-{{panelColor.value}}">
<mat-option value="red">Red</mat-option>
<mat-option value="green">Green</mat-option>
<mat-option value="blue">Blue</mat-option>
</mat-select>
</mat-form-field>

View File

@@ -0,0 +1,16 @@
import { Component, ViewEncapsulation } from '@angular/core';
import { FormControl } from '@angular/forms';
/**
* @title Select with custom panel styling
*/
@Component({
selector : 'select-panel-class-example',
templateUrl : 'select-panel-class-example.html',
styleUrls : ['select-panel-class-example.css'],
encapsulation: ViewEncapsulation.None
})
export class SelectPanelClassExample
{
panelColor = new FormControl('red');
}