0.0.2 • Published 9 years ago
eureka-widget-model-navbar v0.0.2
Eureka-widget-model-navbar
A navigation bar for Eureka's models. Usage:
{
User: {
views: {
model: {
widgets: [
{
type: 'model-navbar',
// the route when clicking on the label.
// - if null or undefined, the route will be <resource>.model.index
// - if false, the label name won't be clickable
labelRoute: null,
items: [ // the items of the navigation bar
{
route: 'user.model.index' // the full ember route
label: 'Informations' // the displayed name
},
{
route: 'user.model.favorites',
label: 'Favorites',
icon: 'glyphicon glyphicon-star' // the icon css classes
}
],
secondaryItems: [ // items will be placed into a dropdown menu
{
route: 'user.model.unimportantStuff',
label: 'stuff'
}
]
}
],
index: {
widgets: [...]
},
favorties: {
widgets: [...]
},
unimportantStuff: {
widgets: [...]
}
}
}
}
}
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.