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
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
/*@
|
||||
Ox.MainMenu <f:Ox.Bar> MainMenu Object
|
||||
() -> <f> MainMenu Object
|
||||
(options) -> <f> MainMenu Object
|
||||
(options, self) -> <f> MainMenu Object
|
||||
([options[, self]]) -> <o> MainMenu Object
|
||||
options <o> Options object
|
||||
extras <a|[]> extra menus
|
||||
menus <a|[]> submenus
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
/*@
|
||||
Ox.Menu <f:Ox.Element> Menu Object
|
||||
() -> <f> Menu Object
|
||||
(options) -> <f> Menu Object
|
||||
(options, self) -> <f> Menu Object
|
||||
([options[, self]]) -> <f> Menu Object
|
||||
options <o> Options object
|
||||
element <o> the element the menu is attached to
|
||||
id <s> the menu id
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.MenuButton <f> Menu Button
|
||||
() -> <f> Menu Button
|
||||
(options) -> Menu Button
|
||||
(options, self) -> Menu Button
|
||||
Ox.MenuButton <f:Ox.Element> Menu Button
|
||||
([options[, self]]) -> <o> Menu Button
|
||||
options <o> Options object
|
||||
disabled <b|false> If true, button is disabled
|
||||
id <s|''> Element id
|
||||
|
|
@ -115,36 +113,40 @@ Ox.MenuButton = function(options, self) {
|
|||
|
||||
/*@
|
||||
checkItem <f> checkItem
|
||||
(id) -> <u> check item with id
|
||||
(id) -> <o> check item with id
|
||||
@*/
|
||||
that.checkItem = function(id) {
|
||||
self.$menu.checkItem(id);
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
disableItem <f> disableItem
|
||||
(id) -> <u> disable item with id
|
||||
(id) -> <o> disable item with id
|
||||
@*/
|
||||
that.disableItem = function(id) {
|
||||
self.$menu.getItem(id).options({disabled: true});
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
enableItem <f> enableItem
|
||||
(id) -> <u> enable item
|
||||
(id) -> <o> enable item
|
||||
@*/
|
||||
that.enableItem = function(id) {
|
||||
self.$menu.getItem(id).options({disabled: false});
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
remove <f> remove
|
||||
() -> <u> remove item
|
||||
() -> <o> remove item
|
||||
@*/
|
||||
self.superRemove = that.remove;
|
||||
that.remove = function() {
|
||||
self.$menu.remove();
|
||||
self.superRemove();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
@ -162,6 +164,7 @@ Ox.MenuButton = function(options, self) {
|
|||
@*/
|
||||
that.uncheckItem = function(id) {
|
||||
self.$menu.uncheckItem(id);
|
||||
return that;
|
||||
};
|
||||
|
||||
return that;
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
/*@
|
||||
Ox.MenuItem <f:Ox.Element> MenuItem Object
|
||||
() -> <f> MenuItem Object
|
||||
(options) -> <f> MenuItem Object
|
||||
(options, self) -> <f> MenuItem Object
|
||||
([options[, self]]) -> <o> MenuItem Object
|
||||
options <o> Options object
|
||||
bind <a|[]> fixme: what's this?
|
||||
checked <f|null>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue