Files
Brandy Carney bf00803737 fix(note): separate note from item so its styles will alway be applied
this was discussed with Ben previously, fixes #9173
2016-11-22 12:45:40 -05:00

35 lines
695 B
TypeScript

import { Directive, ElementRef, Input, Renderer } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
/**
* @private
*/
@Directive({
selector: 'ion-note'
})
export class Note extends Ion {
/**
* @input {string} The predefined color to use. For example: `"primary"`, `"secondary"`, `"danger"`.
*/
@Input()
set color(val: string) {
this._setColor(val);
}
/**
* @input {string} The mode to apply to this component.
*/
@Input()
set mode(val: string) {
this._setMode(val);
}
constructor(config: Config, elementRef: ElementRef, renderer: Renderer) {
super(config, elementRef, renderer, 'note');
}
}