{"id":19623840,"url":"https://github.com/appleple/multi-menu","last_synced_at":"2025-07-08T17:40:52.763Z","repository":{"id":39241764,"uuid":"237141340","full_name":"appleple/multi-menu","owner":"appleple","description":"JavaScript for multi level menu","archived":false,"fork":false,"pushed_at":"2023-01-07T14:17:20.000Z","size":7209,"stargazers_count":22,"open_issues_count":28,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-28T05:34:52.237Z","etag":null,"topics":["npm","vanilla-js","vanillajs"],"latest_commit_sha":null,"homepage":"https://appleple.github.io/multi-menu/","language":"TypeScript","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/appleple.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}},"created_at":"2020-01-30T04:51:50.000Z","updated_at":"2025-04-22T01:12:37.000Z","dependencies_parsed_at":"2023-02-07T09:45:17.259Z","dependency_job_id":null,"html_url":"https://github.com/appleple/multi-menu","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/appleple/multi-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fmulti-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fmulti-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fmulti-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fmulti-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleple","download_url":"https://codeload.github.com/appleple/multi-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fmulti-menu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264316334,"owners_count":23589941,"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","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":["npm","vanilla-js","vanillajs"],"created_at":"2024-11-11T11:35:47.001Z","updated_at":"2025-07-08T17:40:52.744Z","avatar_url":"https://github.com/appleple.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MultiMenu.js\n\n\n## Install\n\n\nuse npm\n\n```sh\n$ npm install multi-menu --save\n```\n\nor from cdn\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/multi-menu@0.0.3/css/multi-level-menu.css\"\u003e\n\u003cscript src=\"https://unpkg.com/multi-menu@0.0.3/bundle/multi-menu.js\"\u003e\u003c/script\u003e\n```\n\n\n## Usage\n\n### basic usage\n\n```js\nimport MultiMenu from 'multi-menu';\nimport 'multi-menu/css/multi-level-menu.css';\n\nnew MultiMenu('.js-multi-menu');\n```\n\n### When you want to limit the ul level to apply js\n\n```js\nimport MultiMenu from 'multi-menu';\nimport 'multi-menu/css/multi-level-menu.css';\n\nnew MultiMenu('.js-multi-menu', {\n  levelLimit: 2\n});\n```\n\n### When you don't want to apply js to specific ul\n\n```js\nimport MultiMenu from 'multi-menu';\nimport 'multi-menu/css/multi-level-menu.css';\n\nnew MultiMenu('.js-multi-menu', {\n  disableMenuClass: 'js-disable-menu'\n});\n```\n\n```html\n\u003cul class=\"js-multi-menu\"\u003e\n  \u003cli\u003etest\u003c/li\u003e\n  \u003cul class=\"js-disable-menu\"\u003e\n    \u003cli\u003etest\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/ul\u003e\n```\n\n### When you want to prepend custom HTML on top of the ul\n\n```js\nimport MultiMenu from 'multi-menu';\nimport 'multi-menu/css/multi-level-menu.css';\n\nnew MultiMenu('.js-multi-menu', {\n  prependHTML: (link) =\u003e `\u003ca href=\"#\" class=\"js-menu-back-btn\"\u003e← Back \u003c/a\u003e\u003c/li\u003e\u003cli class=\"title\"\u003e${link.dataset.title}\u003cli\u003e`,\n});\n```\n\n### When you want to show specific ul first\n\n```html\n\u003cul class=\"js-multi-menu\"\u003e\n  \u003cli\u003etest\u003c/li\u003e\n  \u003cul class=\"active\"\u003e\n    \u003cli\u003etest\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/ul\u003e\n```\n\n\n## Demo\n\nhttps://pensive-lovelace-a07c9a.netlify.com/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fmulti-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleple%2Fmulti-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fmulti-menu/lists"}