refactor(all): color/mode inputs are not longer needed

This commit is contained in:
Manu Mtz.-Almeida
2017-03-21 23:50:09 +01:00
committed by Manuel Mtz-Almeida
parent 7cee7b0eaf
commit 7272b5a42a
29 changed files with 42 additions and 531 deletions

View File

@ -1,4 +1,4 @@
import { ElementRef, Renderer } from '@angular/core';
import { ElementRef, Renderer, Input } from '@angular/core';
import { Config } from '../config/config';
@ -27,6 +27,32 @@ export class Ion {
/** @hidden */
_componentName: string;
/**
* @input {string} The color to use from your Sass `$colors` map.
* Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`.
* For more information, see [Theming your App](/docs/v2/theming/theming-your-app).
*/
@Input()
set color(val: string) {
this._setColor(val);
}
get color(): string {
return this._color;
}
/**
* @input {string} The mode determines which platform styles to use.
* Possible values are: `"ios"`, `"md"`, or `"wp"`.
* For more information, see [Platform Styles](/docs/v2/theming/platform-specific-styles).
*/
@Input()
set mode(val: string) {
this._setMode(val);
}
get mode(): string {
return this._mode;
}
constructor(config: Config, elementRef: ElementRef, renderer: Renderer, componentName?: string) {
this._config = config;
this._elementRef = elementRef;