git clone git@github.com:Romanior/ember-ui-pagination.git
npm install && bower install
ember s
- Visit your app at
http://localhost:4200
npm install --save-dev ember-ui-pagination
ember g ember-ui-pagination
Or with static data, CSV or JSON are supported. CSV file will be parsed to JSON, you
may support with additional csvHeaders
parameters if the .csv file does not have them
one the first row.
where
modelName
- the name of the model where add-on loads data.url
- URL to the server API, for server pagination it should supportpage
andper_page
paramspage
- the page you want to start.csvHeaders
- the CSV headers if you need to parse with with them.
You can overwrite templates in your application to adapt your data
app/templates/components/ember-ui-pagination.hbs
app/templates/components/ember-ui-pagination-item.hbs
ember test
ember test --server