rudimentary documentation for menu
This commit is contained in:
parent
e28bab4dcc
commit
3a85be24da
1 changed files with 17 additions and 0 deletions
|
@ -1948,6 +1948,23 @@ requires
|
||||||
|
|
||||||
Ox.Menu = function(options, self) {
|
Ox.Menu = function(options, self) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
options:
|
||||||
|
element the element the menu is attached to
|
||||||
|
id the menu id
|
||||||
|
items array of menu items
|
||||||
|
mainmenu the main menu this menu is part of, if any
|
||||||
|
offset offset of the menu, in px
|
||||||
|
parent the supermenu, if any
|
||||||
|
selected the position of the selected item
|
||||||
|
side "bottom" or "right"
|
||||||
|
size "large", "medium" or "small"
|
||||||
|
events
|
||||||
|
change_groupId {id, value} checked item of a group has changed
|
||||||
|
click_itemId item not belonging to a group was clicked
|
||||||
|
hide_menuId menu was hidden
|
||||||
|
*/
|
||||||
|
|
||||||
var self = self || {},
|
var self = self || {},
|
||||||
that = new Ox.Element({}, self)
|
that = new Ox.Element({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
|
|
Loading…
Reference in a new issue