Scroll stuff

This commit is contained in:
Max Lynch
2013-11-06 13:01:06 -06:00
parent cc61fb5ff3
commit 2798630b39
13 changed files with 1413 additions and 1312 deletions

View File

@ -63,7 +63,7 @@
</head>
<body>
<content ng-controller="TestCtrl" class="reveal-animation">
<div ng-controller="TestCtrl" class="reveal-animation scroll-content">
<list is-editing="isEditingItems" on-refresh-holding="almostRefreshing()" on-refresh-opening="almostRefreshProjects(ratio)" on-refresh="refreshProjects()" animation="my-repeat-animation" delete-icon="icon ion-minus-circled" reorder-icon="icon ion-navicon">
<list-refresher>
</list-refresher>
@ -79,7 +79,7 @@
</list-item>
</list>
<button ng-click="edit()" class="button button-success">Edit</button>
</content>
</div>
<script src="../../../../dist/js/ionic.js"></script>
<script src="../../../../dist/js/ionic-angular.js"></script>
@ -132,9 +132,10 @@
console.log("REFRESHING");
};
$scope.items = [
{
text: 'Item 1',
$scope.items = [];
for(var i = 0; i < 20; i++) {
$scope.items.push({
text: 'Item ' + i,
canDelete: true,
canSwipe: true,
canReorder: true,
@ -146,47 +147,9 @@
type: 'button-danger',
buttonClicked: removeItem,
}]
},
{
text: 'Item 2',
canDelete: true,
canSwipe: true,
canReorder: true,
icon: 'icon-chevron-right',
deleteItem: removeItem,
buttons: [{
text: 'Kill',
type: 'button-danger',
buttonClicked: removeItem,
}]
},
{
text: 'Item 3',
canDelete: true,
canSwipe: true,
canReorder: true,
icon: 'icon-chevron-right',
deleteItem: removeItem,
buttons: [{
text: 'Kill',
type: 'button-danger',
buttonClicked: removeItem,
}]
},
{
text: 'Item 4',
canDelete: true,
canSwipe: true,
canReorder: true,
icon: 'icon-chevron-right',
deleteItem: removeItem,
buttons: [{
text: 'Kill',
type: 'button-danger',
buttonClicked: removeItem,
}]
}
];
});
}
$scope.edit = function() {
$scope.isEditingItems = !$scope.isEditingItems;
}