checkboxes: allow for squared style

This commit is contained in:
rlx 2016-01-12 09:50:00 +05:30
parent 0b7beec62d
commit 53bc6e9e56

View file

@ -25,6 +25,7 @@ Ox.Checkbox = function(options, self) {
label: '',
labelWidth: 64,
overlap: 'none',
style: 'rounded',
title: '',
value: false,
width: options && (options.label || options.title) ? 'auto' : 16
@ -70,6 +71,7 @@ Ox.Checkbox = function(options, self) {
disabled: self.options.disabled,
id: self.options.id + 'Label',
overlap: 'left',
style: self.options.style,
title: self.options.title,
width: getTitleWidth()
})
@ -92,6 +94,7 @@ Ox.Checkbox = function(options, self) {
self.$button = Ox.Button({
disabled: self.options.disabled,
id: self.options.id + 'Button',
style: self.options.style,
type: 'image',
value: self.options.value ? 'check' : 'none',
values: ['none', 'check']