CheckboxGroup: handle width update

This commit is contained in:
rolux 2013-02-28 14:08:46 +05:30
parent c630818553
commit b5d67ace33

View file

@ -28,6 +28,13 @@ Ox.CheckboxGroup = function(options, self) {
width: 256 width: 256
}) })
.options(options || {}) .options(options || {})
.update({
width: function() {
self.$checkboxes.forEach(function($checkbox) {
$checkbox.options({width: self.options.width});
});
}
})
.addClass('OxCheckboxGroup Ox' + Ox.toTitleCase(self.options.type)); .addClass('OxCheckboxGroup Ox' + Ox.toTitleCase(self.options.type));
self.options.checkboxes = self.options.checkboxes.map(function(checkbox) { self.options.checkboxes = self.options.checkboxes.map(function(checkbox) {