docs(demos): add item sliding & option API demo and fix docs for it

references driftyco/ionic-site#397
This commit is contained in:
Brandy Carney
2016-02-05 19:40:09 -05:00
parent b69bd9420e
commit 5f21823d27
7 changed files with 188 additions and 2 deletions

View File

@@ -13,9 +13,9 @@ import {List} from '../list/list';
* ```html
* <ion-list>
* <ion-item-sliding *ngFor="#item of items">
* <ion-item (click)="itemTapped(item)">
* <button ion-item (click)="itemTapped(item)">
* {{item.title}}
* </ion-item>
* </button>
* <ion-item-options>
* <button (click)="favorite(item)">Favorite</button>
* <button (click)="share(item)">Share</button>
@@ -23,6 +23,7 @@ import {List} from '../list/list';
* </ion-item-sliding>
* </ion-list>
* ```
* @demo /docs/v2/demos/item-sliding/
* @see {@link /docs/v2/components#lists List Component Docs}
* @see {@link ../../list/List List API Docs}
*/

View File

@@ -10,6 +10,7 @@ import {isDefined, isTrueProperty} from '../../util/util';
* @property [value] - the value of the option
* @property [checked] - whether or not the option is already checked and selected
*
* @demo /docs/v2/demos/item-sliding/
*/
@Directive({
selector: 'ion-option'