eureka-widget-collection-display

0.0.3 • Public • Published

Eureka-widget-collection-display

An Eureka widget to display a collection. Usage:

{
    BlogPost: {
        views: {
            collection: {
                index: {
                    // if you want to persiste the filter on the url,
                    // set the queryParams here
                    queryParams: ['search'],
                    widgets: [
                        {
                            type: "collection-display",

                            // Customise the label. If `label` is `auto`
                            // then display the pod type
                            label: "All the blog posts"

                            // if `filter` exists , an input will be displayed
                            // to filter the collection
                            filter: {
                                queryParam: 'search' // should be in the view's queryParams
                            },

                            // what to display if the collection is empty
                            emptyPlaceholder: 'nothing to display here'
                        }
                    ]
                }
            }
        }
    }
}

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-collection-display

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • namlook