Files
ionic-framework/js/ext/angular/test/actionSheet.html
Andy Joslin 2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00

162 lines
4.5 KiB
HTML

<html ng-app="actionTest">
<head>
<meta charset="utf-8">
<title>Action Sheet</title>
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="../../../../dist/css/ionic.css">
<style>
.row .col > div {
width: 100%;
height: 80px;
}
</style>
<script src="../../../../dist/js/ionic.bundle.js"></script>
</head>
<body ng-controller="ActionCtrl">
<ion-content>
<div class="row">
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
<div class="col">
<div style="background-color: #eee" ng-click="show()">
</div>
</div>
</div>
<button ng-click="show()" class="button">Show</button>
</ion-content>
<script>
angular.module('actionTest', ['ionic', 'ngAnimate'])
.controller('ActionCtrl', function($scope, $ionicActionSheet) {
$scope.show = function() {
$ionicActionSheet.show({
buttons: [
{ text: 'Share' },
{ text: 'Move' },
],
destructiveText: 'Delete',
titleText: 'Modify your album',
cancelText: 'Cancel',
cancel: function() {
console.log('CANCELLED');
},
buttonClicked: function(index) {
console.log('BUTTON CLICKED', index);
return true;
},
destructiveButtonClicked: function() {
console.log('DESTRUCT');
return true;
}
});
};
});
</script>
</body>
</html>