mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
fix(note): separate note from item so its styles will alway be applied
this was discussed with Ben previously, fixes #9173
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { Directive } from '@angular/core';
|
||||
import { Directive, ElementRef, Input, Renderer } from '@angular/core';
|
||||
|
||||
import { Config } from '../../config/config';
|
||||
import { Ion } from '../ion';
|
||||
|
||||
/**
|
||||
* @private
|
||||
@ -7,4 +9,26 @@ import { Directive } from '@angular/core';
|
||||
@Directive({
|
||||
selector: 'ion-note'
|
||||
})
|
||||
export class 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');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user