0.0.3 • Published 9 years ago

eureka-widget-collection-display v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

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