forked from 0x2620/oxjs
form elements rewrite, part 3
This commit is contained in:
parent
a6c01dd6c6
commit
d80019a17c
8 changed files with 87 additions and 92 deletions
|
|
@ -34,8 +34,10 @@ Ox.ButtonGroup = function(options, self) {
|
|||
|
||||
self.options.buttons = self.options.buttons.map(function(button) {
|
||||
return Ox.extend({
|
||||
disabled: button.disabled,
|
||||
id: button.id || button,
|
||||
title: button.title || button
|
||||
title: button.title || button,
|
||||
tooltip: button.tooltip,
|
||||
}, self.options.selectable ? {
|
||||
selected: Ox.toArray(self.options.value).indexOf(button.id || button) > -1
|
||||
} : {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue