mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(modules) add
This commit is contained in:
parent
ffda8aaddf
commit
b5928c3be9
58 changed files with 14081 additions and 3 deletions
16
modules/menu/example/menu-data.js
Normal file
16
modules/menu/example/menu-data.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var menu, MenuIO;
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
var element = document.querySelector('#js-menu-container'),
|
||||
options = {
|
||||
icon: true
|
||||
};
|
||||
|
||||
menu = MenuIO(element, options, {
|
||||
'help': function() {
|
||||
console.log('*help');
|
||||
}
|
||||
});
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue