mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Default style for list items
This commit is contained in:
10
js/ext/angular/src/directive/ionicContent.js
vendored
10
js/ext/angular/src/directive/ionicContent.js
vendored
@ -3,12 +3,16 @@
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
4
js/ext/angular/src/directive/ionicList.js
vendored
4
js/ext/angular/src/directive/ionicList.js
vendored
@ -42,9 +42,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