mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Matching option-button names in examples
This commit is contained in:
23
js/ext/angular/src/directive/ionicList.js
vendored
23
js/ext/angular/src/directive/ionicList.js
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user