mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Button type and text
This commit is contained in:
2
dist/ionic-angular.js
vendored
2
dist/ionic-angular.js
vendored
@ -194,7 +194,7 @@ angular.module('ionic.ui.list', ['ionic.service'])
|
||||
' <div class="list-item-content" ng-transclude>' +
|
||||
' </div>' +
|
||||
' <div class="list-item-buttons" ng-if="item.canSwipe">' +
|
||||
' <button class="button button-{{button.type}}" ng-repeat="button in item.buttons">{{item.button.text}}</button>' +
|
||||
' <button class="button" ng-class="button.type" ng-repeat="button in item.buttons">{{button.text}}</button>' +
|
||||
' </div>' +
|
||||
'</li>',
|
||||
link: function($scope, $element, $attr) {
|
||||
|
||||
2
js/ext/angular/src/directive/ionicList.js
vendored
2
js/ext/angular/src/directive/ionicList.js
vendored
@ -12,7 +12,7 @@ angular.module('ionic.ui.list', ['ionic.service'])
|
||||
' <div class="list-item-content" ng-transclude>' +
|
||||
' </div>' +
|
||||
' <div class="list-item-buttons" ng-if="item.canSwipe">' +
|
||||
' <button class="button button-{{button.type}}" ng-repeat="button in item.buttons">{{item.button.text}}</button>' +
|
||||
' <button class="button" ng-class="button.type" ng-repeat="button in item.buttons">{{button.text}}</button>' +
|
||||
' </div>' +
|
||||
'</li>',
|
||||
link: function($scope, $element, $attr) {
|
||||
|
||||
@ -91,7 +91,8 @@
|
||||
canSwipe: true,
|
||||
icon: 'icon-chevron-right',
|
||||
buttons: [{
|
||||
text: 'Kill'
|
||||
text: 'Kill',
|
||||
type: 'button-danger'
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -100,7 +101,8 @@
|
||||
canSwipe: true,
|
||||
icon: 'icon-chevron-right',
|
||||
buttons: [{
|
||||
text: 'Kill'
|
||||
text: 'Kill',
|
||||
type: 'button-danger'
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -109,7 +111,8 @@
|
||||
canSwipe: true,
|
||||
icon: 'icon-chevron-right',
|
||||
buttons: [{
|
||||
text: 'Kill'
|
||||
text: 'Kill',
|
||||
type: 'button-danger'
|
||||
}]
|
||||
},
|
||||
{
|
||||
@ -118,7 +121,8 @@
|
||||
canSwipe: true,
|
||||
icon: 'icon-chevron-right',
|
||||
buttons: [{
|
||||
text: 'Kill'
|
||||
text: 'Kill',
|
||||
type: 'button-danger'
|
||||
}]
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user