Snapshot of poteto/ember-crumbly: 170★, JavaScript. Declarative breadcrumb navigation for Ember apps
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
⚠️ This addon is no longer maintained, please look for an alternative.
Adds a Component to your app that displays the current route hierarchy (commonly known as breadcrumb navigation). Thanks to @rwjblue for providing the excellent addon name.
This addon provides a very declarative way to generate dynamic breadcrumbs.
$ ember install ember-crumbly
Compatibility
This addon is tested against the release, beta and canary channels, and explicitly tested against all versions beginning from ~1.11.x and up.
Usage
Basic usage
Basic usage is simple, just add the Component to any template in your application:
This will automatically output the current route's hierarchy as a clickable breadcrumb in a HTML structure that Bootstrap or Foundation expects. By default, the Component will simply display the route's inferred name.
For example, the route foo/bar/baz/1 will generate the following breadcrumb: Foo > Bar > Baz > Show. In most cases, this won't be exactly how you'd like it, so you can use the following declarative API to update the breadcrumb labels:
In this case, if the name property of model is modified, the breadcrumb will be updated automatically.
Advanced usage
You can also pass in arbitrary properties to the breadCrumb POJO inside your route, and then pass in a custom template to the Component's block to render it the way you'd like:
Will generate the following breadcrumb: Animals > Quadrupeds > Cows > Mary (5) says Moo!
Choosing routes to display
By default, all routes are displayed in the breadcrumb. To have certain routes opt-out of this, simply set breadCrumb to null inside that particular route.
Will generate the following breadcrumb: Animals > Cows > Mary (5) says Moo!
Explicitly setting linkable routes
The Component's linkable attr applies to all routes by default. You can also explicitly set this on specific routes, by adding linkable: {true,false} to the breadCrumb POJO in your route.
// foo/bar/baz/show/route.js
export default Ember.Route.extend({
breadCrumb: {
title: 'Cows with a drinking addiction',
linkable: false
}
});
In certain scenarios, you might want to reverse the order of the breadcrumb (i.e. from RTL instead of LTR). To enable this, just set the reverse attr on the Component in your template:
{{bread-crumbs linkable=true reverse=true}}
Will generate the following breadcrumb: Mary < Cows < Quadrupeds < Animals. Note that you have to style this yourself (the Component is not responsible for generating the separators).
Installation
git clone <repository-url>
cd my-addon
yarn
Linting
yarn lint:js
yarn lint:js -- --fix
Running tests
ember test – Runs the test suite on the current Ember version
ember test --server – Runs the test suite in "watch mode"
ember try:each – Runs the test suite against multiple Ember versions
TopGit's last sync did not record any GitHub topics for poteto/ember-crumbly. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on poteto/ember-crumbly?
The most recent commit recorded on poteto/ember-crumbly was 5.0 years ago, based on the GitHub push timestamp. The repository has 78 forks — one of the better signals of community interest.
How many stars does poteto/ember-crumbly have?
poteto/ember-crumbly has 170 GitHub stars — refresh the page for the live number, or check github.com/poteto/ember-crumbly. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is poteto/ember-crumbly?
poteto/ember-crumbly (poteto/ember-crumbly) is a JavaScript project on GitHub. From the project's own README: Declarative breadcrumb navigation for Ember apps
What language is poteto/ember-crumbly written in?
poteto/ember-crumbly is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
Read full README in the tab above.
Curious whether ember-crumbly is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about ember-crumbly.