ember-list-filter

0.0.3 • Public • Published

List Filter

Build Status

A list filter component with a text input for the ember-cli.

Installation

npm i ember-list-filter --save-dev

Usage

In a template, you can call the list filter component:

{{list-filter list=myUserList partial='list-user' properties='name title description'}}

Then, make sure you define a partial/template. The above example uses list-user:

list-user.hbs

<li>
  {{gravatar-image email=listFilterObject.email}}
  {{listFilterObject.name}}
  {{listFilterObject.email}}
</li>

Note the listFilterObject keyword, this is the variable assigned for the #each block in the list filter component.

Development

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).

Package Sidebar

Install

npm i ember-list-filter

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • johno