mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Working modal stuff
This commit is contained in:
15
js/views/modalView.js
Normal file
15
js/views/modalView.js
Normal file
@ -0,0 +1,15 @@
|
||||
(function(ionic) {
|
||||
ionic.views.Modal = function(opts) {
|
||||
this.el = opts.el;
|
||||
};
|
||||
|
||||
ionic.views.Modal.prototype = {
|
||||
show: function() {
|
||||
this.el.classList.add('active');
|
||||
},
|
||||
hide: function() {
|
||||
this.el.classList.remove('active');
|
||||
}
|
||||
};
|
||||
|
||||
})(ionic);
|
||||
Reference in New Issue
Block a user