Button type and text

This commit is contained in:
Max Lynch
2013-10-09 20:14:29 -05:00
parent 595fc67e49
commit b53c707961
3 changed files with 10 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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'
}]
}
];