Matching option-button names in examples

This commit is contained in:
Zachariah Moreno
2014-03-25 22:23:02 -07:00
parent ab4d3cb4a1
commit e5c148801d

View File

@@ -20,7 +20,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
* <ion-item ng-repeat="item in items"
* item="item"
* can-swipe="true"
* option-buttons="myItemButtons">
* option-buttons="itemButtons">
* </ion-item>
* </ion-list>
* ```
@@ -28,11 +28,22 @@ angular.module('ionic.ui.list', ['ngAnimate'])
* @param {string=} item-type The type of this item. See [the list CSS page](/docs/components/#list) for available item types.
* @param {expression=} option-buttons The option buttons to show when swiping the item to the left (if swiping is enabled). Defaults to the ionList parent's option-buttons setting. The format of each button object is:
* ```js
* {
* text: 'Edit',
* type: 'Button',
* onTap: function(item) {}
* }
* $scope.itemButtons = [
* {
* text: 'Edit',
* type: 'Button',
* onTap: function(item) {
* alert('Edit Item: ' + item.id);
* }
* },
* {
* text: 'Share',
* type: 'Button',
* onTap: function(item) {
* alert('Share Item: ' + item.id);
* }
* }
* ];
* ```
*
* @param {expression=} item The 'object' representing this item, to be passed in to swipe, delete, and reorder callbacks.