eureka-widget-model-navbar

0.0.2 • Public • Published

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 repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Package Sidebar

Install

npm i eureka-widget-model-navbar

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • namlook