1
0
Fork 0
forked from 0x2620/oxjs

cleanup docs, fix children/find calls

This commit is contained in:
j 2012-05-22 15:14:40 +02:00
commit b9e80c9d75
88 changed files with 157 additions and 253 deletions

View file

@ -1,7 +1,7 @@
'use strict';
/*@
Ox.ArrayEditable <function> Array Editable
Ox.ArrayEditable <f:Ox.Element> Array Editable
(options, self) -> <f> Array Editable
options <o> Options object
self <o> Shared private variable

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.ArrayInput <function> Array input
(options, self) -> <f> Array input
Ox.ArrayInput <f:Ox.Element> Array input
(options, self) -> <o> Array input
options <o> Options object
label <s> string, ''
max <n> integer, maximum number of items, 0 for all

View file

@ -2,9 +2,9 @@
/*@
Ox.Button <f:Ox.Element> Button Object
() -> <f> Button Object
(options) -> <f> Button Object
(options, self) -> <f> Button Object
() -> <o> Button Object
(options) -> <o> Button Object
(options, self) -> <o> Button Object
options <o> Options object
If a button is both selectable and has two values, its value is the
selected id, and the second value corresponds to the selected state

View file

@ -2,9 +2,9 @@
/*@
Ox.ButtonGroup <f:Ox.Element> ButtonGroup Object
() -> <f> ButtonGroup Object
(options) -> <f> ButtonGroup Object
(options, self) -> <f> ButtonGroup Object
() -> <o> ButtonGroup Object
(options) -> <o> ButtonGroup Object
(options, self) -> <o> ButtonGroup Object
options <o> Options object
buttons <a> array of buttons
max <n> integer, maximum number of selected buttons, 0 for all

View file

@ -2,9 +2,9 @@
/*@
Ox.Checkbox <f:Ox.Element> Checkbox Element
() -> <f> Checkbox Element
(options) -> <f> Checkbox Element
(options, self) -> <f> Checkbox Element
() -> <o> Checkbox Element
(options) -> <o> Checkbox Element
(options, self) -> <o> Checkbox Element
options <o> Options object
disabled <b> if true, checkbox is disabled
group <b> if true, checkbox is part of a group

View file

@ -2,9 +2,9 @@
/*@
Ox.CheckboxGroup <f:Ox.Element> CheckboxGroup Object
() -> <f> CheckboxGroup Object
(options) -> <f> CheckboxGroup Object
(options, self) -> <f> CheckboxGroup Object
() -> <o> CheckboxGroup Object
(options) -> <o> CheckboxGroup Object
(options, self) -> <o> CheckboxGroup Object
options <o> Options object
checkboxes <a|[]> array of checkboxes
max <n|1> max selected

View file

@ -2,9 +2,9 @@
/*@
Ox.ColorInput <f:Ox.InputGroup> ColorInput Element
() -> <f> ColorInput Element
(options) -> <f> ColorInput Element
(options, self) -> <f> ColorInput Element
() -> <o> ColorInput Element
(options) -> <o> ColorInput Element
(options, self) -> <o> ColorInput Element
options <o> Options object
id <s> element id
value <s|0, 0, 0> rgb value

View file

@ -2,9 +2,9 @@
/*@
Ox.ColorPicker <f:Ox.Element> ColorPicker Element
() -> <f> ColorPicker Element
(options) -> <f> ColorPicker Element
(options, self) -> <f> ColorPicker Element
() -> <o> ColorPicker Element
(options) -> <o> ColorPicker Element
(options, self) -> <o> ColorPicker Element
options <o> Options object
id <s> element id
value <s|0, 0, 0> rgb value
@ -50,19 +50,18 @@ Ox.ColorPicker = function(options, self) {
}
})
.appendTo(that);
// fixme: make self.$ranges[i].children() work
if (i == 0) {
// fixme: this should go into Ox.UI.css
self.$ranges[i].$element.children('input.OxOverlapRight').css({
self.$ranges[i].children('input.OxOverlapRight').css({
MozBorderRadius: 0,
WebkitBorderRadius: 0
});
self.$ranges[i].$element.children('input.OxOverlapLeft').css({
self.$ranges[i].children('input.OxOverlapLeft').css({
MozBorderRadius: '0 8px 0 0',
WebkitBorderRadius: '0 8px 0 0'
});
} else {
self.$ranges[i].$element.children('input').css({
self.$ranges[i].children('input').css({
MozBorderRadius: 0,
WebkitBorderRadius: 0
});

View file

@ -1,10 +1,8 @@
'use strict';
/*@
Ox.DateInput <f:Ox.Element> DateInput Element
() -> <f> DateInput Element
(options) -> <f> DateInput Element
(options, self) -> <f> DateInput Element
Ox.DateInput <f:Ox.InputGroup> DateInput Element
([options[, self]]) -> <o> DateInput Element
options <o> Options object
format <s|short> format can be short, medium, long
value <d> date value, defaults to current date

View file

@ -1,10 +1,8 @@
'use strict';
/*@
Ox.DateTimeInput <f:Ox.Element> DateTimeInput Element
() -> <f> DateTimeInput Element
(options) -> <f> DateTimeInput Element
(options, self) -> <f> DateTimeInput Element
Ox.DateTimeInput <f:Ox.InputGroup> DateTimeInput Element
([options[, self]]) -> <o> DateTimeInput Element
options <o> Options object
ampm <b|false> false is 24h true is am/pm
format <s|short> options are short, medium, long

View file

@ -1,10 +1,8 @@
'use strict';
/*@
Ox.Editable <f> Editable element
() -> <f> Input Element
(options) -> <f> Input Element
(options, self) -> <f> Input Element
Ox.Editable <f:Ox.Element> Editable element
([options[, self]]) -> <o> Input Element
options <o> Options object
editing <b|false> If true, loads in editing state
format <f|null> Format function

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.FileButton <function> File Button
(options[, self]) -> <o> File Button
Ox.FileButton <f:Ox.Element> File Button
([options[, self]]) -> <o> File Button
options <o> Options
self <o> Shared private variable
@*/

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.FileInput <function> File Input
(options[, self]) -> <o> File Input
Ox.FileInput <f:Ox.Element> File Input
([options[, self]]) -> <o> File Input
options <o> Options
self <o> Shared private variable
@*/

View file

@ -1,10 +1,8 @@
'use strict';
/*@
Ox.Filter <o> Filter Object
() -> <f> Filter Object
(options) -> <f> Filter Object
(options, self) -> <f> Filter Object
Ox.Filter <f:Ox.Element> Filter Object
([options[, self]]) -> <o> Filter Object
options <o> Options object
findKeys <[]|[]> keys
list <o> list object

View file

@ -2,9 +2,7 @@
/*@
Ox.Form <f:Ox.Element> Form Object
() -> <f> Form Object
(options) -> <f> Form Object
(options, self) -> <f> Form Object
([options[, self]]) -> <o> Form Object
options <o> Options object
error <s> error
id <s> id

View file

@ -2,9 +2,7 @@
/*@
Ox.FormElementGroup <f:Ox.Element> FormElementGroup Element
() -> <f> FormElementGroup Element
(options) -> <f> FormElementGroup Element
(options, self) -> <f> FormElementGroup Element
([options[, self]]) -> <f> FormElementGroup Element
options <o> Options object
id <s> element id
elements <a|[]> elements in group

View file

@ -2,9 +2,7 @@
/*@
Ox.FormItem <f:Ox.Element> FormItem Element, wrap form element with an error message
() -> <f> FormItem Element
(options) -> <f> FormItem Element
(options, self) -> <f> FormItem Element
([options[, self]]) -> <f> FormItem Element
options <o> Options object
element <o|null> element
error <s> error message

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.FormPanel <function> Form Panel
(options[, self]) -> <o> Form Panel
Ox.FormPanel <f:Ox.Element> Form Panel
([options[, self]]) -> <o> Form Panel
options <o> Options
self <o> Shared private variable
@*/

View file

@ -2,9 +2,7 @@
/*@
Ox.Input <f:Ox.Element> Input Element
() -> <f> Input Element
(options) -> <f> Input Element
(options, self) -> <f> Input Element
([options[, self]]) -> <o> Input Element
options <o> Options object
arrows <b> if true, and type is 'float' or 'int', display arrows
arrowStep <n> step when clicking arrows

View file

@ -2,9 +2,7 @@
/*@
Ox.InputGroup <f:Ox.Element> InputGroup Object
() -> <f> InputGroup Object
(options) -> <f> InputGroup Object
(options, self) -> <f> InputGroup Object
([options[, self]]) -> <o> InputGroup Object
options <o> Options object
id <s|''> id
inputs <a|[]> inputs

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.InsertHTMLDialog <function> Insert HTML Dialog
(options[, self]) -> <o> Insert HTML Dialog
Ox.InsertHTMLDialog <f:Ox.Dialog> Insert HTML Dialog
([options[, self]]) -> <o> Insert HTML Dialog
options <o> Options
self <o> Shared private variable
@*/

View file

@ -2,9 +2,7 @@
/*@
Ox.Label <f:Ox.Element> Label Object
() -> <f> Label Object
(options) -> <f> Label Object
(options, self) -> <f> Label Object
([options[, self]]) -> <o> Label Object
options <o> Options object
@*/
Ox.Label = function(options, self) {

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.ObjectArrayInput <function> Object Array Input
(options[, self]) -> <o> Object Array Input
Ox.ObjectArrayInput <f:Ox.Element> Object Array Input
([options[, self]]) -> <o> Object Array Input
options <o> Options
buttonTitles
inputs

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.ObjectInput <function> Object Input
(options[, self]) -> <o> Object Input
Ox.ObjectInput <f:Ox.Element> Object Input
([options[, self]]) -> <o> Object Input
options <o> Options
self <o> Shared private variable
@*/

View file

@ -2,9 +2,7 @@
/*@
Ox.Picker <f:Ox.Element> Picker Object
() -> <f> Picker Object
(options) -> <f> Picker Object
(options, self) -> <f> Picker Object
([options[, self]]) -> <o> Picker Object
options <o> Options object
element <o|null> picker element
elementHeight <n|128> height

View file

@ -2,9 +2,7 @@
/*@
Ox.PlaceInput <f:Ox.FormElementGroup> PlaceInput Object
() -> <f> PlaceInput Object
(options) -> <f> PlaceInput Object
(options, self) -> <f> PlaceInput Object
([options[, self]]) -> <f> PlaceInput Object
options <o> Options object
id <s> element id
value <s|United States> default value of place input

View file

@ -1,10 +1,8 @@
'use strict';
/*@
Ox.PlacePicker <f:Ox.Element> PlacePicker Object
() -> <f> PlacePicker Object
(options) -> <f> PlacePicker Object
(options, self) -> <f> PlacePicker Object
Ox.PlacePicker <f:Ox.Picker> PlacePicker Object
([options[, self]]) -> <o> PlacePicker Object
options <o> Options object
id <s> element id
value <s|United States> default value of place input
@ -69,17 +67,17 @@ Ox.PlacePicker = function(options, self) {
)
);
self.$input.$element.children('input[type=text]').css({
self.$input.children('input[type=text]').css({
width: '230px',
paddingLeft: '2px',
MozBorderRadius: '0 8px 8px 0',
WebkitBorderRadius: '0 8px 8px 0'
});
self.$input.$element.children('input[type=image]').css({
self.$input.children('input[type=image]').css({
MozBorderRadius: '0 8px 0 0',
WebkitBorderRadius: '0 8px 0 0'
});
self.$range.$element.children('input').css({
self.$range.children('input').css({
MozBorderRadius: 0,
WebkitBorderRadius: 0
});

View file

@ -2,9 +2,7 @@
/*@
Ox.Range <f:Ox.Element> Range Object
() -> <f> Range Object
(options) -> <f> Range Object
(options, self) -> <f> Range Object
([options[, self]]) -> <o> Range Object
options <o> Options object
arrows <b> if true, show arrows
arrowStep <n> step when clicking arrows

View file

@ -2,9 +2,7 @@
/*@
Ox.Select <f:Ox.Element> Select Object
() -> <f> Select Object
(options) -> <f> Select Object
(options, self) -> <f> Select Object
([options[, self]) -> <o> Select Object
options <o> Options object
disabled <b|false> If true, select is disabled
id <s> Element id

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.SelectInput <function> Select Input
(options[, self]) -> <o> Select Input
Ox.SelectInput <f:Ox.FormElementGroup> Select Input
([options[, self]]) -> <o> Select Input
options <o> Options
self <o> Shared private variable
@*/

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.Spreadsheet <function> Spreadsheet
(options[, self]) -> <o> Spreadsheet
Ox.Spreadsheet <f:Ox.Element> Spreadsheet
([options[, self]]) -> <o> Spreadsheet
options <o> Options
self <o> Shared private variable
@*/

View file

@ -2,9 +2,7 @@
/*@
Ox.TimeInput <f:Ox.Element> TimeInput Object
() -> <f> TimeInput Object
(options) -> <f> TimeInput Object
(options, self) -> <f> TimeInput Object
([options[, self]]) -> <f> TimeInput Object
options <o> Options object
ampm <b|false> 24h/ampm
seconds <b|false> show seconds