Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ax5ui/ax5ui-menu
Javascript UI Component - Menu (Context Menu, Inline Menu)
https://github.com/ax5ui/ax5ui-menu
bootstrap-menu context-menu jquery jquery-menu menu
Last synced: about 9 hours ago
JSON representation
Javascript UI Component - Menu (Context Menu, Inline Menu)
- Host: GitHub
- URL: https://github.com/ax5ui/ax5ui-menu
- Owner: ax5ui
- License: mit
- Created: 2016-03-08T03:44:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T03:57:42.000Z (almost 6 years ago)
- Last Synced: 2025-01-31T09:04:26.676Z (8 days ago)
- Topics: bootstrap-menu, context-menu, jquery, jquery-menu, menu
- Language: JavaScript
- Homepage: http://ax5.io/ax5ui-menu/demo/index.html
- Size: 863 KB
- Stars: 21
- Watchers: 6
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/ax5ui/ax5ui-menu.svg?branch=master)](https://travis-ci.org/ax5ui/ax5ui-menu)
[![npm version](https://badge.fury.io/js/ax5ui-menu.svg)](https://badge.fury.io/js/ax5ui-menu)
[![](https://img.shields.io/npm/dm/ax5ui-menu.svg)](https://www.npmjs.com/package/ax5ui-menu)# ax5ui-menu
"menu" displays a list of items in a hierarchical structure.![ax5menu](src/ax5menu.gif)
> *Dependencies*
> * _[jQuery 1.X+](http://jquery.com/)_
> * _[ax5core](http://ax5.io/ax5core)_
> * _[bootstrap](http://getbootstrap.com/)_### Install with bower
```sh
bower install ax5ui-menu
```
[bower](http://bower.io/#install-bower) is web front-end package manager.
[bower](http://bower.io/#install-bower) is web front-end package manager.
When you install `bower`, it will be installed under the `bower_components` folder to resolve the plug-in dependencies.
(You can change the folder location. [.bowerrc](http://bower.io/docs/config/#bowerrc-specification) )It is recommended that you install by using `bower`.
If you've never used bower, please refer to [http://bower.io/#install-bower](http://bower.io/#install-bower).### Install with npm
If you do not use bower, it also can be installed by using npm as an alternative.
In case of npm, which is the package manager for the front end, you need to solve the problem of plug-in dependencies.```sh
npm install jquery
npm install ax5core
npm install ax5ui-menu
```After downloading the install file of npm, you will need to copy it to the location where you want to use as a resource for the project.
If the copy process is inconvenient, it also can be done easily by using `gulp` or `grunt`.### Download code
- [ax5core Github releases](https://github.com/ax5ui/ax5core/releases)
- [ax5ui-menu Github releases](https://github.com/ax5ui/ax5ui-menu/releases)### Insert "ax5menu" in HTML HEAD.
Folder location can be any for your project. However, please be sure to assign the right path in the project.```html
```
**CDN urls**
This is a list of CDN urls for ax5ui-menu. ax5ui offers the CDN services through rawgit.
```
https://cdn.rawgit.com/ax5ui/ax5ui-menu/master/dist/ax5menu.css
https://cdn.rawgit.com/ax5ui/ax5ui-menu/master/dist/ax5menu.js
https://cdn.rawgit.com/ax5ui/ax5ui-menu/master/dist/ax5menu.min.js
```### Basic Usage
```js
var menu = new ax5.ui.menu({
theme: 'primary',
items: [
{label: "Menu 0"},
{label: "Menu 1"}
]
});$(document).bind("contextmenu", function (e) {
menu.popup(e); // e || {left: 'Number', top: 'Number', direction: '', width: 'Number'}
ax5.util.stopEvent(e);
});
```***
### Preview
- [See Demonstration](http://ax5.io/ax5ui-menu/demo/index.html)If you have any questions, please refer to the following [gitHub](https://github.com/ax5ui/ax5ui-kernel)
## Question
- https://jsdev.kr/c/axisj/ax5ui
- https://github.com/ax5ui/ax5ui-kernel/issues[![axisj-contributed](https://img.shields.io/badge/AXISJ.com-Contributed-green.svg)](https://github.com/axisj)
![](https://img.shields.io/badge/Seowoo-Mondo&Thomas-red.svg)