Files
ionic-framework/js/views/actionSheetView.js
Max Lynch 6ab1f49688 Fixed #64 and fixed sub view controllers and tabs
Moved tabs to be absolute not fixed so they can easily
be placed inside of containers
2013-11-08 18:09:48 -06:00

27 lines
663 B
JavaScript

(function(ionic) {
'use strict';
/**
* 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 = ionic.views.View.inherit({
initialize: function(opts) {
this.el = opts.el;
},
show: function() {
// Force a reflow so the animation will actually run
this.el.offsetWidth;
this.el.classList.add('active');
},
hide: function() {
// Force a reflow so the animation will actually run
this.el.offsetWidth;
this.el.classList.remove('active');
}
});
})(ionic);