Merge pull request #904 from XachMoreno/patch-4

Matching option-button names in examples
This commit is contained in:
Adam Bradley
2014-03-26 08:44:46 -05:00

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.