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,10 +1,8 @@
'use strict';
/*@
Ox.Chart <f> Bar Chart
() -> <o> Chart object
(options) -> <o> Chart object
(options, self) -> <o> Chart object
Ox.Chart <f:Ox.Element> Bar Chart
([options[, self]]) -> <o> Chart object
options <o> Options
color <[n]|[[n]]|[128, 128, 128]> Bar color
data <o> {k: v, ...} or {k: {k: v, ...}, ...}

View file

@ -2,9 +2,7 @@
/*@
Ox.IconItem <f:Ox.Element> IconItem Object
() -> <f> IconItem Object
(options) -> <f> IconItem Object
(options, self) -> <f> IconItem Object
([options[, self]]) -> <o> IconItem Object
options <o> Options object
borderRadius <n|0> Border radius for icon images
find <s|''> String to be highlighted

View file

@ -1,9 +1,7 @@
'use strict';
/*@
Ox.IconList <f:Ox.Element> IconList Object
() -> <f> IconList Object
(options) -> <f> IconList Object
(options, self) -> <f> IconList Object
([options[, self]]) -> <o> IconList Object
options <o> Options object
borderRadius <n|0> border radius for icon images
centerSelection <b|false> scroll list so selection is always centered

View file

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

View file

@ -1,10 +1,8 @@
'use strict';
/*@
Ox.List <f:Ox.Element> List Element
() -> <f> List Object
(options) -> <f> List Object
(options, self) -> <f> List Object
Ox.List <f:Ox.Container> List Element
([options[, self]]) -> <f> List Object
options <o> Options object
centered <b|false> if true, and orientation is 'horizontal',
then keep the selected item centered

View file

@ -2,9 +2,7 @@
/*@
Ox.ListItem <f:Ox.Element> ListItem Object
() -> <f> ListItem Object
(options) -> <f> ListItem Object
(options, self) -> <f> ListItem Object
([options[, self]]) -> <o> ListItem Object
options <o> Options object
construct <f> construct function
data <o|{}> item data

View file

@ -2,9 +2,7 @@
/*@
Ox.ListPage <f:Ox.Element> ListPage Object
() -> <f> ListPage Object
(options) -> <f> ListPage Object
(options, self) -> <f> ListPage Object
([options[, self]]) -> <o> ListPage Object
options <o> Options object
self <o> shared private variable
@*/

View file

@ -2,9 +2,7 @@
/*@
Ox.TextList <f:Ox.Element> TextList Object
() -> <f> TextList Object
(options) -> <f> TextList Object
(options, self) -> <f> TextList Object
([options[, self]]) -> <f> TextList Object
options <o> Options object
columns <[o]|[]> Columns
# Fixme: There's probably more...
@ -759,7 +757,7 @@ Ox.TextList = function(options, self) {
function setWidth() {
var width = getItemWidth();
that.$body.$content.$element.find('.OxItem').css({ // fixme: can we avoid this lookup?
that.$body.find('.OxItem').css({ // fixme: can we avoid this lookup?
width: width + 'px'
});
that.$body.$content.css({

View file

@ -2,9 +2,7 @@
/*@
Ox.TreeList <f:Ox.Element> TreeList Object
() -> <f> TreeList Object
(options) -> <f> TreeList Object
(options, self) -> <f> TreeList Object
([options[, self]]) -> <o> TreeList Object
options <o> Options object
data <f|null> data to be parsed to items, needs documentation
items <a|[]> array of items