{"id":17055079,"url":"https://github.com/therolffr/customenu","last_synced_at":"2025-07-29T01:05:02.222Z","repository":{"id":91419166,"uuid":"110144120","full_name":"TheRolfFR/custoMenu","owner":"TheRolfFR","description":"Create custom context menus easily","archived":false,"fork":false,"pushed_at":"2019-03-14T15:25:12.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:48:51.839Z","etag":null,"topics":["context-menu","js","js-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheRolfFR.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-11-09T17:12:38.000Z","updated_at":"2019-03-14T15:25:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cb29f8b-a253-4aad-8314-5f5993d720cf","html_url":"https://github.com/TheRolfFR/custoMenu","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/TheRolfFR/custoMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRolfFR%2FcustoMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRolfFR%2FcustoMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRolfFR%2FcustoMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRolfFR%2FcustoMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheRolfFR","download_url":"https://codeload.github.com/TheRolfFR/custoMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRolfFR%2FcustoMenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267612808,"owners_count":24115526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["context-menu","js","js-plugin"],"created_at":"2024-10-14T10:16:41.845Z","updated_at":"2025-07-29T01:05:02.177Z","avatar_url":"https://github.com/TheRolfFR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custoMenu\n![](https://img.shields.io/github/release/therolffr/custoMenu.svg?style=flat-square)\n![Drop, enjoy](https://img.shields.io/badge/Drop,-Enjoy%20!-red.svg?style=flat-square)\n[![Author](https://img.shields.io/badge/Author-TheRolfFR-%2331a589.svg?style=flat-square)](http://bit.ly/therolf-website)\n![License: LGPL--3.0](https://img.shields.io/badge/license-LGPL--3.0-lightgrey.svg?style=flat-square) \n![Repo Size](https://img.shields.io/github/languages/code-size/TheRolfFR/custoMenu.svg?style=flat-square)\n[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/gh/TheRolfFR/custoMenu/badge?style=flat-square)](https://www.jsdelivr.com/package/gh/TheRolfFR/custoMenu)\n\nCreate custom context menus easily\n\n## Usage\n### 1. Import js and css\nImport custoMenu :\n```html\n\u003cscript src=\"path/to/custoMenu.js\"\u003e\u003c/script\u003e\n\u003clink  href=\"path/to/custoMenu.css\" rel=\"stylesheet\" /\u003e\n```\nYou can use jsDelivr links to keep updated your custoMenu : https://www.jsdelivr.com/package/gh/TheRolfFR/custoMenu \n\n### 2. Create your context menu object\nThe menu itself has this these properties :\n\n|      | Required |Type          | Desc |\n| ---- |:--------:|------------- | ---- |\n| name | X        | String       | Name of the custoMenu |\n| items| X        | Object       | Contains your items |\n\nAnd each item has these properties :\n\n|      | Required |Type          | Desc |\n| ---- |:--------:|------------- | ---- |\n| text | X        | HTML         | Text of the custoMenu item |\n| desc |          | String       | Description of the custoMenu item |\n| func | X        | Function | Function associated to the custoMenu item |\n\nExample :\n\n```javascript\nvar filectxmenu = {\n\tname: 'file',\n\titems: {\n\t\t'openfile' : { // function name must be unique throught every object. If not the last function will be choosed\n\t\t\ttext: '\u003ci class=\"material-icons\"\u003e\u0026#xE254;\u003c/i\u003e',\n\t\t\tdesc: 'Open',\n\t\t\tfunc: function() {\n\t\t\t\t// your function\n\t\t\t} // etc...\n\t\t}\n  }\n}\n  ```\n### 3. Add your object to CustoMenu in your script\n```javascript\ncustoMenu.addMenu(filectxmenu);\n```\n### 4. Add class and data attributes to your elements\n  * class : custoMe\n  * data-name: file (name of your function)\n```html\n\u003cdiv class=\"custoMe\" data-name=\"file\"\u003efile.txt\u003c/div\u003e\n```\n### 5. Enjoy !\n\nLicense: GNU Lesser General Public License v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherolffr%2Fcustomenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftherolffr%2Fcustomenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherolffr%2Fcustomenu/lists"}