1
0
Fork 0
forked from 0x2620/oxjs

form elements rewrite, part 3

This commit is contained in:
rlx 2011-12-22 05:52:46 +00:00
commit d80019a17c
8 changed files with 87 additions and 92 deletions

View file

@ -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
} : {});