{"id":19555005,"url":"https://github.com/kanety/stimulus-contextmenu","last_synced_at":"2026-03-09T10:31:37.817Z","repository":{"id":57123858,"uuid":"415235109","full_name":"kanety/stimulus-contextmenu","owner":"kanety","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-11T06:20:39.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-20T02:04:25.926Z","etag":null,"topics":[],"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/kanety.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-09T07:23:05.000Z","updated_at":"2025-06-11T08:34:30.000Z","dependencies_parsed_at":"2025-04-11T18:02:06.998Z","dependency_job_id":"bca540b8-7e77-4b4e-8898-238662cb0731","html_url":"https://github.com/kanety/stimulus-contextmenu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kanety/stimulus-contextmenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fstimulus-contextmenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fstimulus-contextmenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fstimulus-contextmenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fstimulus-contextmenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanety","download_url":"https://codeload.github.com/kanety/stimulus-contextmenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fstimulus-contextmenu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: 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":[],"created_at":"2024-11-11T04:30:57.391Z","updated_at":"2026-03-09T10:31:37.799Z","avatar_url":"https://github.com/kanety.png","language":"JavaScript","readme":"# stimulus-contextmenu\n\nA stimulus controller for simple contextmenu.\n\n## Dependencies\n\n* @hotwired/stimulus 3.0+\n\n## Installation\n\nInstall from npm:\n\n    $ npm install @kanety/stimulus-contextmenu --save\n\n## Usage\n\nRegister controller:\n\n```javascript\nimport { Application } from '@hotwired/stimulus';\nimport ContextmenuController from '@kanety/stimulus-contextmenu';\n\nconst application = Application.start();\napplication.register('contextmenu', ContextmenuController);\n```\n\nImport css:\n\n```css\n@import '@kanety/stimulus-contextmenu';\n```\n\nBuild html as follows:\n\n```html\n\u003cdiv data-controller=\"contextmenu\"\u003e\n  \u003cp\u003econtent\u003c/p\u003e\n  \u003cp\u003econtent\u003c/p\u003e\n  \u003cul class=\"st-contextmenu\" data-contextmenu-target=\"menu\"\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eMenu1-1\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eMenu1-2\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n```\n\nYou can specify context area bound to menu:\n\n```html\n\u003cdiv data-controller=\"contextmenu\"\u003e\n  \u003cdiv data-contextmenu-target=\"context\"\u003e\n    \u003cp\u003econtent\u003c/p\u003e\n    \u003cp\u003econtent\u003c/p\u003e\n  \u003c/div\u003e\n  \u003cul class=\"st-contextmenu\" data-contextmenu-target=\"menu\"\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eMenu1-1\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eMenu1-2\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n```\n\nYou can also use [@kanety/stimulus-menu](https://github.com/kanety/stimulus-menu) as menu:\n\n```html\n\u003cdiv data-controller=\"contextmenu\"\u003e\n  \u003cp\u003econtent\u003c/p\u003e\n  \u003cp\u003econtent\u003c/p\u003e\n  \u003cdiv class=\"st-contextmenu\" data-contextmenu-target=\"menu\"\u003e\n    \u003cul class=\"st-menu st-menu--vertical\" data-controller=\"menu\"\u003e\n      \u003cli\u003e\n        \u003cspan class=\"st-menu__icon\"\u003e\u003ca href=\"#\"\u003eMenu1\u003c/a\u003e\u003c/span\u003e\n        \u003cul class=\"st-menu--vertical\"\u003e\n          \u003cli\u003e\u003ca href=\"#\"\u003eMenu1-1\u003c/a\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ca href=\"#\"\u003eMenu1-2\u003c/a\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/li\u003e\n      \u003cli\u003e\n        \u003cspan class=\"st-menu__icon\"\u003e\u003ca href=\"#\"\u003eMenu2\u003c/a\u003e\u003c/span\u003e\n        \u003cul class=\"st-menu--vertical\"\u003e\n          \u003cli\u003e\u003ca href=\"#\"\u003eMenu2-1\u003c/a\u003e\u003c/li\u003e\n          \u003cli\u003e\u003ca href=\"#\"\u003eMenu2-2\u003c/a\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## License\n\nThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanety%2Fstimulus-contextmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanety%2Fstimulus-contextmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanety%2Fstimulus-contextmenu/lists"}