1
0
Fork 0
forked from 0x2620/oxjs

some keyboard navigation, some submenu

This commit is contained in:
Rolux 2010-02-05 10:50:13 +05:30
commit 8277cab528
5 changed files with 197 additions and 74 deletions

View file

@ -39,6 +39,7 @@ $(function() {
},
{
checked: false,
disabled: true,
group: "123",
id: "fifth",
title: "Fifth"
@ -48,10 +49,38 @@ $(function() {
group: "123",
id: "sixth",
title: "Sixth"
},
{},
{
id: "more",
items: [
{
checked: true,
group: "789",
id: "seventh",
title: "Seventh"
},
{
checked: false,
group: "789",
id: "eighth",
title: "Eighth"
},
{
checked: false,
group: "789",
id: "ninth",
title: "Ninth"
},
],
title: "More",
}
]
});
button.click(menu.toggleMenu)
button.click(function() {
$(this).focus();
menu.toggleMenu();
});
Ox.Event.bind("OxClickMenu", function(event, data) {
button.options({
value: data.value