eureka-widget-model-actions-bar

0.0.2 • Public • Published

Eureka-widget-model-actions-bar

An action bar for Eureka's models

{
    type: 'model-actions-bar',
    actions: [
        { // regular action (you will have to implement the action into the controller)
            name: 'simpleAction', // the name of the triggered action
            label: 'simple action',
            icon: 'glyphicon glyphicon-pencil' // icon css classes
        },
        { // route transition action
            name: 'edit',
            route: 'user.model.edit' // the full ember route
        },
        { // toggle action
            name: 'toggleIsExtinct',
            field: 'isExtinct',
            toggle: {
                true: {
                    label: 'set extinct',
                    next: false,
                },
                false: {
                    label: 'unextinct',
                    next: true
                }
            }
        }
    ]
}

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/.

/eureka-widget-model-actions-bar/

    Package Sidebar

    Install

    npm i eureka-widget-model-actions-bar

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • namlook