mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Basic pull to refresh shell
This commit is contained in:
@ -49,7 +49,10 @@
|
||||
<body>
|
||||
|
||||
<content has-header="true" ng-controller="TestCtrl" class="reveal-animation">
|
||||
<list is-editing="isEditingItems" animation="my-repeat-animation" delete-icon="icon-minus-circled" reorder-icon="icon-navicon">
|
||||
<list is-editing="isEditingItems" on-refresh="refreshProjects()" animation="my-repeat-animation" delete-icon="icon-minus-circled" reorder-icon="icon-navicon">
|
||||
<div class="list-refresher">
|
||||
<div style="height: 100px; font-size: 30px; text-align: center">REFRESHING</div>
|
||||
</div>
|
||||
<list-item ng-repeat="item in items"
|
||||
buttons="item.buttons"
|
||||
can-delete="true"
|
||||
@ -75,6 +78,10 @@
|
||||
$scope.items.splice($scope.items.indexOf(item), 1);
|
||||
};
|
||||
|
||||
$scope.refreshProjects = function() {
|
||||
alert('refreshing!');
|
||||
};
|
||||
|
||||
$scope.items = [
|
||||
{
|
||||
text: 'Item 1',
|
||||
|
||||
Reference in New Issue
Block a user