mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +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 class="list-item-content" ng-transclude>' +
|
||||||
' </div>' +
|
' </div>' +
|
||||||
' <div class="list-item-buttons" ng-if="item.canSwipe">' +
|
' <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>' +
|
' </div>' +
|
||||||
'</li>',
|
'</li>',
|
||||||
link: function($scope, $element, $attr) {
|
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 class="list-item-content" ng-transclude>' +
|
||||||
' </div>' +
|
' </div>' +
|
||||||
' <div class="list-item-buttons" ng-if="item.canSwipe">' +
|
' <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>' +
|
' </div>' +
|
||||||
'</li>',
|
'</li>',
|
||||||
link: function($scope, $element, $attr) {
|
link: function($scope, $element, $attr) {
|
||||||
|
|||||||
@ -91,7 +91,8 @@
|
|||||||
canSwipe: true,
|
canSwipe: true,
|
||||||
icon: 'icon-chevron-right',
|
icon: 'icon-chevron-right',
|
||||||
buttons: [{
|
buttons: [{
|
||||||
text: 'Kill'
|
text: 'Kill',
|
||||||
|
type: 'button-danger'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -100,7 +101,8 @@
|
|||||||
canSwipe: true,
|
canSwipe: true,
|
||||||
icon: 'icon-chevron-right',
|
icon: 'icon-chevron-right',
|
||||||
buttons: [{
|
buttons: [{
|
||||||
text: 'Kill'
|
text: 'Kill',
|
||||||
|
type: 'button-danger'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -109,7 +111,8 @@
|
|||||||
canSwipe: true,
|
canSwipe: true,
|
||||||
icon: 'icon-chevron-right',
|
icon: 'icon-chevron-right',
|
||||||
buttons: [{
|
buttons: [{
|
||||||
text: 'Kill'
|
text: 'Kill',
|
||||||
|
type: 'button-danger'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -118,7 +121,8 @@
|
|||||||
canSwipe: true,
|
canSwipe: true,
|
||||||
icon: 'icon-chevron-right',
|
icon: 'icon-chevron-right',
|
||||||
buttons: [{
|
buttons: [{
|
||||||
text: 'Kill'
|
text: 'Kill',
|
||||||
|
type: 'button-danger'
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user