checkboxes: allow for squared style
This commit is contained in:
parent
0b7beec62d
commit
53bc6e9e56
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,7 @@ Ox.Checkbox = function(options, self) {
|
||||||
label: '',
|
label: '',
|
||||||
labelWidth: 64,
|
labelWidth: 64,
|
||||||
overlap: 'none',
|
overlap: 'none',
|
||||||
|
style: 'rounded',
|
||||||
title: '',
|
title: '',
|
||||||
value: false,
|
value: false,
|
||||||
width: options && (options.label || options.title) ? 'auto' : 16
|
width: options && (options.label || options.title) ? 'auto' : 16
|
||||||
|
@ -70,6 +71,7 @@ Ox.Checkbox = function(options, self) {
|
||||||
disabled: self.options.disabled,
|
disabled: self.options.disabled,
|
||||||
id: self.options.id + 'Label',
|
id: self.options.id + 'Label',
|
||||||
overlap: 'left',
|
overlap: 'left',
|
||||||
|
style: self.options.style,
|
||||||
title: self.options.title,
|
title: self.options.title,
|
||||||
width: getTitleWidth()
|
width: getTitleWidth()
|
||||||
})
|
})
|
||||||
|
@ -92,6 +94,7 @@ Ox.Checkbox = function(options, self) {
|
||||||
self.$button = Ox.Button({
|
self.$button = Ox.Button({
|
||||||
disabled: self.options.disabled,
|
disabled: self.options.disabled,
|
||||||
id: self.options.id + 'Button',
|
id: self.options.id + 'Button',
|
||||||
|
style: self.options.style,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
value: self.options.value ? 'check' : 'none',
|
value: self.options.value ? 'check' : 'none',
|
||||||
values: ['none', 'check']
|
values: ['none', 'check']
|
||||||
|
|
Loading…
Reference in a new issue