mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Default style for list items
This commit is contained in:
14
dist/js/ionic-angular.js
vendored
14
dist/js/ionic-angular.js
vendored
@ -514,12 +514,16 @@ angular.module('ionic.ui.checkbox', [])
|
||||
|
||||
angular.module('ionic.ui.content', [])
|
||||
|
||||
/**
|
||||
* Panel is a simple 100% width and height, fixed panel. It's meant for content to be
|
||||
* added to it, or animated around.
|
||||
*/
|
||||
.directive('pane', function() {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
transclude: true,
|
||||
template: '<div class="pane" ng-transclude></div>'
|
||||
compile: function(element, attr) {
|
||||
element.addClass('pane');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -701,9 +705,9 @@ angular.module('ionic.ui.list', ['ngAnimate'])
|
||||
}
|
||||
|
||||
// Add the list item type class
|
||||
$element.addClass($attr.type || 'item-slider');
|
||||
$element.addClass($attr.type || 'item-complex');
|
||||
|
||||
if($attr.type !== 'item-slider') {
|
||||
if($attr.type !== 'item-complex') {
|
||||
$scope.canSwipe = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user