forked from 0x2620/oxjs
add documentation stubs
This commit is contained in:
parent
b3fce3a28a
commit
509745407b
102 changed files with 613 additions and 163 deletions
|
|
@ -1,5 +1,3 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
|
||||
'use strict';
|
||||
|
||||
/*@
|
||||
|
|
@ -116,28 +114,32 @@ Ox.MenuButton = function(options, self) {
|
|||
}
|
||||
|
||||
/*@
|
||||
checkItem <f>
|
||||
checkItem <f> checkItem
|
||||
(id) -> <u> check item with id
|
||||
@*/
|
||||
that.checkItem = function(id) {
|
||||
self.$menu.checkItem(id);
|
||||
};
|
||||
|
||||
/*@
|
||||
disableItem <f>
|
||||
disableItem <f> disableItem
|
||||
(id) -> <u> disable item with id
|
||||
@*/
|
||||
that.disableItem = function(id) {
|
||||
self.$menu.getItem(id).options({disabled: true});
|
||||
};
|
||||
|
||||
/*@
|
||||
enableItem <f>
|
||||
enableItem <f> enableItem
|
||||
(id) -> <u> enable item
|
||||
@*/
|
||||
that.enableItem = function(id) {
|
||||
self.$menu.getItem(id).options({disabled: false});
|
||||
};
|
||||
|
||||
/*@
|
||||
remove <f>
|
||||
remove <f> remove
|
||||
() -> <u> remove item
|
||||
@*/
|
||||
self.superRemove = that.remove;
|
||||
that.remove = function() {
|
||||
|
|
@ -145,11 +147,19 @@ Ox.MenuButton = function(options, self) {
|
|||
self.superRemove();
|
||||
};
|
||||
|
||||
/*@
|
||||
setItemTitle <f> setItemTitle
|
||||
(id, title) -> <o> set item title
|
||||
@*/
|
||||
that.setItemTitle = function(id, title) {
|
||||
self.$menu.setItemTitle(id, title);
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
uncheckItem <f> uncheck item
|
||||
(id) -> <o> uncheck item with id
|
||||
@*/
|
||||
that.uncheckItem = function(id) {
|
||||
self.$menu.uncheckItem(id);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue