forked from 0x2620/oxjs
cleanup docs, fix children/find calls
This commit is contained in:
parent
a98902f165
commit
b9e80c9d75
88 changed files with 157 additions and 253 deletions
|
|
@ -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, ...}, ...}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
@*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
@*/
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue