mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
@ -5,6 +5,11 @@ import {Component} from 'angular2/angular2';
|
|||||||
* Creates a list-item that can easily be swiped,
|
* Creates a list-item that can easily be swiped,
|
||||||
* deleted, reordered, edited, and more.
|
* deleted, reordered, edited, and more.
|
||||||
*
|
*
|
||||||
|
* There are three common ways to use an item:
|
||||||
|
* - Use `<ion-item>` for something that is only non-clickable text.
|
||||||
|
* - Use `<button ion-item>` for something that can be clicked/tapped. Typically this element will also have a `(click)` handler.
|
||||||
|
* - Use `<a ion-item>` for when the item needs to contain a `href`.
|
||||||
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```html
|
* ```html
|
||||||
* <ion-list>
|
* <ion-list>
|
||||||
@ -16,6 +21,7 @@ import {Component} from 'angular2/angular2';
|
|||||||
* </ion-item>
|
* </ion-item>
|
||||||
* </ion-list>
|
* </ion-list>
|
||||||
* ```
|
* ```
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ion-item,[ion-item]',
|
selector: 'ion-item,[ion-item]',
|
||||||
|
Reference in New Issue
Block a user