forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote.ts
More file actions
39 lines (35 loc) · 910 Bytes
/
note.ts
File metadata and controls
39 lines (35 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Directive, ElementRef, Renderer } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
/**
* @name Note
* @module ionic
* @description
* A note is detailed item in an ion-item. It creates greyed out element that can be on the left or right side of an item.
* @usage
*
* ```html
* <ion-content>
* <ion-list>
* <ion-item>
* <ion-note item-start>
* Left Note
* </ion-note>
* My Item
* <ion-note item-end>
* Right Note
* </ion-note>
* </ion-item>
* </ion-list>
* </ion-content>
*```
* {@link /docs/api/components/api/components/item/item ion-item}
*/
@Directive({
selector: 'ion-note'
})
export class Note extends Ion {
constructor(config: Config, elementRef: ElementRef, renderer: Renderer) {
super(config, elementRef, renderer, 'note');
}
}