Merge branch '2.0' into pr/6203

This commit is contained in:
Brandy Carney
2016-04-21 19:39:57 -04:00
87 changed files with 1897 additions and 524 deletions

View File

@ -58,6 +58,11 @@ export class Button {
*/
isItem: boolean;
/**
* @input {string} The category of the button.
*/
@Input() category: string;
/**
* @input {string} Large button.
*/
@ -185,6 +190,16 @@ export class Button {
this._readAttrs(element);
}
/**
* @private
*/
ngOnInit() {
// If the button has a role applied to it
if (this.category) {
this.setRole(this.category);
}
}
/**
* @private
*/