/ngContextMenu

angular context menu

Primary LanguageJavaScriptMIT LicenseMIT

ngContextMenu

right menu demo

Build Status Test Coverage

Install

bower install ngcontextmenu --save

Usage

  • html
<div contextmenu menu-list="lists" click-menu="clickMenu(item)">
  <span>111</span>
</div>
  • js
$scope.lists = [{
  name: '11'
}, {
  name: '22'
}]

$scope.clickMenu = function (item) {
  console.log(item);
};

You can add options config

$scope.options = {
  isMultiple: false,
  itemLabel: 'label'
}

Pull Request

git clone git@github.com:angular-box/ngContextMenu.git
cd ngContextMenu
npm install
bower install

# run serve
gulp serve

Test

gulp test

Todo

  • Add animation
  • Add nest menu
  • Add disabled menu