1
0
Fork 0
forked from 0x2620/oxjs

document events

This commit is contained in:
j 2012-06-18 00:38:26 +02:00
commit d2e05200da
56 changed files with 277 additions and 32 deletions

View file

@ -3,6 +3,16 @@
/*@
Ox.Menu <f> Menu Object
([options[, self]]) -> <o:Ox.Element> Menu Object
change_groupId <!> {id, value} checked item of a group has changed
click_itemId <!> item not belonging to a group was clicked
click_menuId <!> {id, value} item not belonging to a group was clicked
deselect_menuId <!> {id, value} item was deselected not needed, not implemented
hide_menuId <!> menu was hidden
select_menuId <!> {id, value} item was selected
click <!> click
change <!> change
select <!> select
deselect <!> deselect
options <o> Options object
element <o> the element the menu is attached to
id <s> the menu id
@ -16,12 +26,6 @@ Ox.Menu <f> Menu Object
side <s> open to 'bottom' or 'right'
size <s> 'large', 'medium' or 'small'
self <o> shared private variable
change_groupId <!> {id, value} checked item of a group has changed
click_itemId <!> item not belonging to a group was clicked
click_menuId <!> {id, value} item not belonging to a group was clicked
deselect_menuId <!> {id, value} item was deselected not needed, not implemented
hide_menuId <!> menu was hidden
select_menuId <!> {id, value} item was selected
@*/
Ox.Menu = function(options, self) {

View file

@ -15,6 +15,10 @@ Ox.MenuButton <f> Menu Button
e <object> Mouse event
type <s|'text'> Type ('text' or 'image')
width <s|n|'auto'> Width in px, or 'auto'
click <!> click
change <!> change
hide <!> hide
show <!> show
@*/
Ox.MenuButton = function(options, self) {