CheckboxGroup: handle width update
This commit is contained in:
parent
c630818553
commit
b5d67ace33
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,13 @@ Ox.CheckboxGroup = function(options, self) {
|
|||
width: 256
|
||||
})
|
||||
.options(options || {})
|
||||
.update({
|
||||
width: function() {
|
||||
self.$checkboxes.forEach(function($checkbox) {
|
||||
$checkbox.options({width: self.options.width});
|
||||
});
|
||||
}
|
||||
})
|
||||
.addClass('OxCheckboxGroup Ox' + Ox.toTitleCase(self.options.type));
|
||||
|
||||
self.options.checkboxes = self.options.checkboxes.map(function(checkbox) {
|
||||
|
|
Loading…
Reference in a new issue