forked from 0x2620/oxjs
cleanup, again
This commit is contained in:
parent
2809a5d06d
commit
094b1a59ec
34 changed files with 93 additions and 101 deletions
|
|
@ -33,10 +33,10 @@ Ox.Checkbox = function(options, self) {
|
|||
width: 'auto'
|
||||
})
|
||||
.options(options || {})
|
||||
.addClass('OxCheckbox'
|
||||
+ (self.options.overlap == 'none' ? '' : ' OxOverlap'
|
||||
+ Ox.toTitleCase(self.options.overlap))
|
||||
)
|
||||
.addClass('OxCheckbox' + (
|
||||
self.options.overlap == 'none'
|
||||
? '' : ' OxOverlap' + Ox.toTitleCase(self.options.overlap)
|
||||
))
|
||||
.attr({
|
||||
disabled: self.options.disabled
|
||||
});
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ Ox.CheckboxGroup <f:Ox.Element> CheckboxGroup Object
|
|||
min <n|1> integer
|
||||
width <n> integer, width in px
|
||||
self <o> shared private variable
|
||||
|
||||
change <!> triggered when checked property changes
|
||||
passes {checked, id, title}
|
||||
@*/
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Ox.ColorPicker <f:Ox.Element> ColorPicker Element
|
|||
id <s> element id
|
||||
value <s|0, 0, 0> rgb value
|
||||
self <o> Shared private variable
|
||||
change <!> triggered on change of value
|
||||
change <!> triggered on change of value
|
||||
@*/
|
||||
|
||||
Ox.ColorPicker = function(options, self) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Ox.DateInput <f:Ox.Element> DateInput Element
|
|||
weekday <n> width of weekday input element
|
||||
year <n> width of year input element
|
||||
self <o> Shared private variable
|
||||
change <!> triggered on change of value
|
||||
change <!> triggered on change of value
|
||||
@*/
|
||||
Ox.DateInput = function(options, self) {
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ Ox.DateTimeInput <f:Ox.Element> DateTimeInput Element
|
|||
value <d> defautls to now
|
||||
weekday <b|false> weekday
|
||||
self <o> Shared private variable
|
||||
change <!> triggered on change of value
|
||||
change <!> triggered on change of value
|
||||
@*/
|
||||
|
||||
Ox.DateTimeInput = function(options, self) {
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ Ox.Editable = function(options, self) {
|
|||
width: width /*+ Ox.UI.SCROLLBAR_SIZE*/ + 'px'
|
||||
});
|
||||
}
|
||||
//self.$input.find('input').css({width: width + 2})
|
||||
/*
|
||||
that.triggerEvent('change', {
|
||||
value: event.value
|
||||
|
|
@ -177,7 +176,7 @@ Ox.Editable = function(options, self) {
|
|||
return self.options.type == 'input'
|
||||
? self.options.value.replace(/ /g, ' ')
|
||||
: Ox.parseHTML(self.options.value || ' ')
|
||||
.replace(/<br\/?>$/, '<br/> ');
|
||||
.replace(/<br\/?>$/, '<br/> ');
|
||||
}
|
||||
|
||||
function formatValue() {
|
||||
|
|
|
|||
|
|
@ -677,7 +677,7 @@ Ox.Filter = function(options, self) {
|
|||
items: ['K', 'M', 'G', 'T'].map(function(prefix) {
|
||||
return {id: prefix + title, title: prefix + title};
|
||||
}),
|
||||
width: 48
|
||||
width: 48
|
||||
}) : Ox.Label({
|
||||
overlap: 'left',
|
||||
textAlign: 'center',
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ Ox.Input = function(options, self) {
|
|||
}
|
||||
}
|
||||
newLength = newValue.length;
|
||||
|
||||
|
||||
//Ox.print('selectEnd', selectEnd)
|
||||
|
||||
if (self.options.autocompleteReplace) {
|
||||
|
|
@ -484,8 +484,8 @@ Ox.Input = function(options, self) {
|
|||
var cursor,
|
||||
length,
|
||||
regexp = type == 'float' ? new RegExp(
|
||||
'(^' + (self.options.min < 0 ? '\\-?' : '') + '\\d+\\.?\\d' +
|
||||
(self.options.decimals ? '{0,' + self.options.decimals + '}' : '*')
|
||||
'(^' + (self.options.min < 0 ? '\\-?' : '') + '\\d+\\.?\\d'
|
||||
+ (self.options.decimals ? '{0,' + self.options.decimals + '}' : '*')
|
||||
+ '$)'
|
||||
) : new RegExp('(^' + (self.options.min < 0 ? '\\-?' : '') + '\\d+)');
|
||||
if (type == 'float') {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ Ox.Label <f:Ox.Element> Label Object
|
|||
(options) -> <f> Label Object
|
||||
(options, self) -> <f> Label Object
|
||||
options <o> Options object
|
||||
|
||||
@*/
|
||||
Ox.Label = function(options, self) {
|
||||
|
||||
|
|
|
|||
|
|
@ -6,20 +6,20 @@ Ox.Range <f:Ox.Element> Range Object
|
|||
(options, self) -> <f> Range Object
|
||||
options <o> Options object
|
||||
arrows <b> if true, show arrows
|
||||
arrowStep <n> step when clicking arrows
|
||||
arrowSymbols <a> arrow symbols, like ['minus', 'plus']
|
||||
max <n> maximum value
|
||||
min <n> minimum value
|
||||
orientation <s> 'horizontal' or 'vertical'
|
||||
step <n> step between values
|
||||
size <n> width or height, in px
|
||||
thumbSize <n> minimum width or height of thumb, in px
|
||||
arrowStep <n> step when clicking arrows
|
||||
arrowSymbols <a> arrow symbols, like ['minus', 'plus']
|
||||
max <n> maximum value
|
||||
min <n> minimum value
|
||||
orientation <s> 'horizontal' or 'vertical'
|
||||
step <n> step between values
|
||||
size <n> width or height, in px
|
||||
thumbSize <n> minimum width or height of thumb, in px
|
||||
thumbValue <b> if true, display value on thumb
|
||||
trackGradient <a> colors
|
||||
trackGradient <a> colors
|
||||
trackImages <s|[s]> one or multiple track background image URLs
|
||||
trackStep <n> 0 (scroll here) or step when clicking track
|
||||
value <n> initial value
|
||||
valueNames <a> value names to display on thumb
|
||||
trackStep <n> 0 (scroll here) or step when clicking track
|
||||
value <n> initial value
|
||||
valueNames <a> value names to display on thumb
|
||||
self <o> shared private variable
|
||||
change <!> triggered on change of the range
|
||||
@*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue