forked from 0x2620/oxjs
more docs
This commit is contained in:
parent
bdb8d98787
commit
cc75e25415
42 changed files with 664 additions and 93 deletions
|
|
@ -5,6 +5,17 @@ Ox.MenuItem <f:Ox.Element> MenuItem Object
|
|||
(options) -> <f> MenuItem Object
|
||||
(options, self) -> <f> MenuItem Object
|
||||
options <o> Options object
|
||||
bind <a|[]> fixme: what's this?
|
||||
checked <f|null>
|
||||
disabled <b|false>
|
||||
group <s|''>
|
||||
icon <s|''> icon
|
||||
id <s|''> id
|
||||
items <a|[]> items
|
||||
keyboard <s|''> keyboard
|
||||
menu <o|null> menu
|
||||
position <n|0> position
|
||||
title <a|[]> title
|
||||
self <o> shared private variable
|
||||
@*/
|
||||
|
||||
|
|
@ -90,6 +101,9 @@ Ox.MenuItem = function(options, self) {
|
|||
};
|
||||
}
|
||||
|
||||
/*@
|
||||
setOption <f> setOption
|
||||
@*/
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'checked') {
|
||||
that.$status.html(value ? Ox.UI.symbols.check : '')
|
||||
|
|
@ -105,6 +119,9 @@ Ox.MenuItem = function(options, self) {
|
|||
// toggle id and title
|
||||
};
|
||||
|
||||
/*@
|
||||
toggelChecked <f> toggleChecked
|
||||
@*/
|
||||
that.toggleChecked = function() {
|
||||
that.options({
|
||||
checked: !self.options.checked
|
||||
|
|
@ -114,7 +131,10 @@ Ox.MenuItem = function(options, self) {
|
|||
that.toggleDisabled = function() {
|
||||
|
||||
};
|
||||
|
||||
|
||||
/*@
|
||||
toggelTitle <f> toggleTitle
|
||||
@*/
|
||||
that.toggleTitle = function() {
|
||||
//Ox.print('s.o.t', self.options.title)
|
||||
that.options({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue