started checkbox

This commit is contained in:
Adam Bradley
2013-10-11 16:41:43 -05:00
parent 5f34979f4b
commit 17ae340b13
10 changed files with 221 additions and 10 deletions

26
dist/js/ionic.js vendored
View File

@ -1750,6 +1750,32 @@ window.ionic = {
})(ionic);
;
(function(ionic) {
ionic.views.Checkbox = function(opts) {
this.el = opts.el;
this.checkbox = opts.checkbox;
this.handle = opts.handle;
};
ionic.views.Checkbox.prototype = {
tap: function(e) {
this.val( !this.checkbox.checked );
},
val: function(value) {
if(value === true || value === false) {
this.checkbox.checked = value;
}
return this.checkbox.checked;
}
};
})(ionic);
;
(function(ionic) {
ionic.views.HeaderBar = function(opts) {