forked from 0x2620/oxjs
some keyboard navigation, some submenu
This commit is contained in:
parent
bff58df78f
commit
8277cab528
5 changed files with 197 additions and 74 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue