mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
Action sheet working
This commit is contained in:
22
dist/ionic.js
vendored
22
dist/ionic.js
vendored
@ -1730,6 +1730,28 @@ window.ionic = {
|
||||
}
|
||||
})(window.ionic);
|
||||
;
|
||||
(function(ionic) {
|
||||
/**
|
||||
* An ActionSheet is the slide up menu popularized on iOS.
|
||||
*
|
||||
* You see it all over iOS apps, where it offers a set of options
|
||||
* triggered after an action.
|
||||
*/
|
||||
ionic.views.ActionSheet = function(opts) {
|
||||
this.el = opts.el;
|
||||
};
|
||||
|
||||
ionic.views.ActionSheet.prototype = {
|
||||
show: function() {
|
||||
this.el.classList.add('active');
|
||||
},
|
||||
hide: function() {
|
||||
this.el.classList.remove('active');
|
||||
}
|
||||
};
|
||||
|
||||
})(ionic);
|
||||
;
|
||||
|
||||
(function(ionic) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user