angular-desk-menu
Angular dropdown menu directive. Google docs style. Not released, be aware directive names may change.
Features
- Unlimited submenus
- Keyboard shortcuts
- No jQuery
Installation
npm install angular-desk-menu
Usage
Example
<!-- Using font-awesome icons --> <!-- Optional callback, either use regular ng-click --> <!-- Disable option --> Bell <!-- Divider --> <!-- Use desk-value to send val to callback on click --> Car Bell <!-- Register shortcut --> Car
Docs
Modules
angular-desk-menu
Directives
-
deskMenu
- callback, function, gets value from desk-value as attribute
- desk-keypress, add this to listen for shortcuts
-
deskOption
- label (string), Label for menu dropdown
-
deskDropdown
-
deskDdOption
- desk-value, value gets sent to callback on deskMenu
- shortcut (string), Key shortcut for option. Preventing default on choosen shortcuts. Optional Ctrl, Alt, Shift and letter/number separated with dash. Ex Ctrl-C, Shift-Alt-F
- disabled, (boolean)
-
deskIcon
-
deskLabel
Todo
License
MIT