{"id":13497400,"url":"https://github.com/zeeshanhyder/angular-right-click","last_synced_at":"2026-02-21T00:04:40.256Z","repository":{"id":57179015,"uuid":"56318034","full_name":"zeeshanhyder/angular-right-click","owner":"zeeshanhyder","description":"Angular right click and context menu library. No dependencies.","archived":false,"fork":false,"pushed_at":"2017-02-20T07:08:30.000Z","size":8,"stargazers_count":11,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-23T13:00:08.779Z","etag":null,"topics":["angular","callback","right-click"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeeshanhyder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-15T12:20:09.000Z","updated_at":"2023-03-05T03:52:47.000Z","dependencies_parsed_at":"2022-09-09T19:01:04.054Z","dependency_job_id":null,"html_url":"https://github.com/zeeshanhyder/angular-right-click","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zeeshanhyder/angular-right-click","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhyder%2Fangular-right-click","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhyder%2Fangular-right-click/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhyder%2Fangular-right-click/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhyder%2Fangular-right-click/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeeshanhyder","download_url":"https://codeload.github.com/zeeshanhyder/angular-right-click/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeeshanhyder%2Fangular-right-click/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29668646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T23:24:07.480Z","status":"ssl_error","status_checked_at":"2026-02-20T23:24:06.202Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","callback","right-click"],"created_at":"2024-07-31T20:00:30.407Z","updated_at":"2026-02-21T00:04:40.240Z","avatar_url":"https://github.com/zeeshanhyder.png","language":"JavaScript","readme":"# angular-right-click\nAngular right click and context menu library. No dependencies.\n\n## Installation\n\n### General\n- Copy/move `ng-right-click.js` from `src` dir in the package to your project dir\n- In your Angular app, add a dependency to your module as below:\n  \n  `angular.module('yourApp',['ngRightClick',...]');` \n  \n### bower\n\nIn your project dir, type the following command:\n\n```sh\n$ bower install angular-right-click\n```\nThen add a `\u003cscript\u003e` in your project `html`:\n\n```javascript\n\u003cscript src='/bower_components/angular-right-click/src/ng-right-click.js'\u003e\u003c/script\u003e\n```\nAnd finally in your Angular app, add the dependency as:\n\n`angular.module('yourApp',['ngRightClick',...]');`\n\n### npm\nIn your project dir, run the following command:\n\n```sh\n$ npm install angular-right-click\n```\nThen `require()` in your project source as:\n\n```javascript\nrequire('angular-right-click')\n```\n\n### CSS \nImport default `css` file in your project `index` file as: \n\n```html\n\u003clink rel=\"stylesheet\" href=\"[node_modules | bower_components]/angular-right-click/src/css/ng-right-click.css\"\u003e\n```\n\n## Usage\n\n### Basic callback only (like `ng-click`, no context menu)\n\n```html\n\u003cdiv ng-right-click=\"someFunction()\"\u003e\u003c/div\u003e\n```\n\n### Context-menu only option\n\nIn your html file, use the component like this:\n\n```html\n\u003cdiv ng-right-click menu-items=\"menuItems\"\u003e\u003c/div\u003e\n```\n\n### Both callback and context-menu option\n\n```html\n\u003cdiv ng-right-click=\"someFunction()\" menu-items=\"menuItems\"\u003e\u003c/div\u003e\n```\n\nwhere the data format is (in your controller):\n\n```javascript\n$scope.sayHello = function(){\n    //say hello!\n};\n\n$scope.menuItems = [\n      { text: \"Menu Item 1\", //menu option text\n        disabled: true //No click event. Grayed out option.\n      },\n      {\n        text:\"Menu Item 2\", \n        callback: sayHello, //function to be called on click \n        disabled: false\n      }\n    ];\n```\n\n### Styling\n\nI have included a default `css` file for default styling. Include it in your file. You can easily override it with your custom `css` class lie that:\n\n```html\n\u003cdiv ng-right-click menu-items=\"menuItems\" menu-class=\"custom-css-class\"\u003e\u003c/div\u003e\n```\n\n## Examples\n\nPlease check the examples directory to get the gist!\n\nCheck code example [here](https://github.com/zeeshanhyder/angular-right-click/tree/master/examples).\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshanhyder%2Fangular-right-click","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeeshanhyder%2Fangular-right-click","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeeshanhyder%2Fangular-right-click/lists"}