mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(menu) v0.7.3
This commit is contained in:
parent
08e86475f4
commit
df2fe7258a
4 changed files with 11 additions and 7 deletions
|
|
@ -39,7 +39,7 @@
|
|||
]
|
||||
}, {
|
||||
"name": "menu",
|
||||
"version": "0.6.5",
|
||||
"version": "0.7.3",
|
||||
"local": [
|
||||
"/lib/client/menu/menu-io.css",
|
||||
"/lib/client/menu/menu-io.js"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Tired to use js based libraries which use jquery and `.hover` classes insteed of
|
|||
|
||||
- `1.6kb` min & gzip for js.
|
||||
- `1kb` min & gzip for css.
|
||||
- no dependencies (just part of [util.io](http://coderaiser.github.io/util.io)).
|
||||
- no dependencies (just part of [util-io](http://coderaiser.github.io/util-io)).
|
||||
- easy to use.
|
||||
- easy to extend.
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ var element = document.body,
|
|||
name : 'name of menu' /* if you want use a couple menu on one element */
|
||||
},
|
||||
|
||||
menu = Menu(element, options, {
|
||||
menu = MenuIO(element, options, {
|
||||
'item name': function onItemNameClick() {
|
||||
});
|
||||
```
|
||||
|
|
@ -85,3 +85,6 @@ Look for `examples` directory or copy example from bottom:
|
|||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
#License
|
||||
MIT
|
||||
|
|
|
|||
|
|
@ -90,7 +90,10 @@ var MenuIO, Util;
|
|||
}
|
||||
|
||||
if (Options.icon) {
|
||||
nameIcon = Util.convertName(name);
|
||||
nameIcon = Util.rmStr(name, ['(', ')']);
|
||||
nameIcon = Util.replaceStr(nameIcon, ' ', '-');
|
||||
nameIcon = nameIcon.toLowerCase();
|
||||
|
||||
className += ' icon icon-' + nameIcon;
|
||||
}
|
||||
|
||||
|
|
@ -348,6 +351,4 @@ var MenuIO, Util;
|
|||
return itIs;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
})(window);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "menu",
|
||||
"version": "0.7.0",
|
||||
"version": "0.7.3",
|
||||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
||||
"description": "Simple css-based multillevel context menu",
|
||||
"homepage": "http://coderaiser.github.io/menu",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue