{"id":20754479,"url":"https://github.com/annotationsro/ember-dynamic-menu","last_synced_at":"2026-04-21T15:05:18.426Z","repository":{"id":46647415,"uuid":"71660082","full_name":"AnnotationSro/ember-dynamic-menu","owner":"AnnotationSro","description":"Dynamic horizontal menu, that shows dropdown button when neccesary.","archived":false,"fork":false,"pushed_at":"2022-10-02T11:10:37.000Z","size":1854,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T04:25:19.421Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","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/AnnotationSro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-22T19:11:29.000Z","updated_at":"2021-10-01T19:43:50.000Z","dependencies_parsed_at":"2023-01-19T02:01:24.745Z","dependency_job_id":null,"html_url":"https://github.com/AnnotationSro/ember-dynamic-menu","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-dynamic-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-dynamic-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-dynamic-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnnotationSro%2Fember-dynamic-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnnotationSro","download_url":"https://codeload.github.com/AnnotationSro/ember-dynamic-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243058983,"owners_count":20229475,"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":["hacktoberfest"],"created_at":"2024-11-17T09:17:58.190Z","updated_at":"2026-04-21T15:05:18.387Z","avatar_url":"https://github.com/AnnotationSro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-dynamic-menu\n\n[![Build Status](https://travis-ci.org/AnnotationSro/ember-dynamic-menu.svg?branch=master)](https://travis-ci.org/AnnotationSro/ember-dynamic-menu)\n\nMobile friendly horizontal menu - on wide enough screens it shows all the menu items side-by-side, but once the screen (window width) is not able to show all the menu items, dropdown button is show.\nYou can assign a priority to each menu item - menu item with the lowest priority will be hidden first.\n\n## WARNING\nThis package is no longer maintained!\n\n## Install\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.20 or above\n* Ember CLI v3.20 or above\n* Node.js v12 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-dynamic-menu\n```\n\n## Usage\n```\n{{#dynamic-menu dropdownButtonWidth=50 position='bottom' dropdownIconClasses='fa fa-caret-down' dropdownTitle='more'}}\n\n  {{#dynamic-menu-item priority=5}}\n    {{!-- any template you want for a menu item --}}\n    \u003cdiv class=\"my-menu-item\"\u003e\n      Press me!\n    \u003c/div\u003e\n  {{/dynamic-menu-item}}\n\n  {{#dynamic-menu-item priority=1}}\n    {{!-- any template you want for a menu item --}}\n    \u003cdiv class=\"my-menu-item\"\u003e\n      Press me #2!\n    \u003c/div\u003e\n  {{/dynamic-menu-item}}\n\n{{/dynamic-menu}}  \n```\n\nNote that each menu item *must* have the same width. To specify dropdown button width use `dropdownButtonWidth` property (see example above).\nYou can also specify position of the menu, using property `position` which can be either `top` or `bottom` (default).\nTo customize the dropdown button, you can add any CSS classes to the dropdown button using property `dropdownIconClasses` - you can add FontAwesome, glypicons, Icomoon icons or whatever you like. You can also add aditional text that will be show under the icon using `dropdownTitle` property.\nTo make space between menu items equally distributed, you can use `enableAutoSpacing` (true|false) to enable it (true by default) - just beware: your browser must support flexbox.\n\n## Styling\n```\n\n\u003c!-- container element that holds all menu items that are visible --\u003e\n.dynamic-menu-container{\n    background-color: red;\n}\n\n\u003c!-- well, dropdown button... --\u003e\n.dropdown-button{\n  width: 50px;\n  height: 50px;\n  background-color: blue;\n  display: inline-block;\n}\n\n\u003c!-- container element that holds all menu items that are visible after user clicks on dropdown button --\u003e\n#dynamic-dropdown{\n  background-color: orange;\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannotationsro%2Fember-dynamic-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannotationsro%2Fember-dynamic-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannotationsro%2Fember-dynamic-menu/lists"}