Files
ionic-framework/js/views/toggleView.js
2013-09-27 15:11:47 -05:00

27 lines
439 B
JavaScript

(function(ionic) {
ionic.views.Toggle = function(opts) {
this.el = opts.el;
this.checkbox = opts.checkbox;
this.track = opts.track;
this.handle = opts.handle;
};
ionic.views.Toggle.prototype = {
tap: function(e) {
},
val: function(value) {
if(value === true || value === false) {
this.checkbox.checked = value;
}
return this.checkbox.checked;
}
};
})(ionic);