A list filter component with a text input for the ember-cli.
npm i ember-list-filter --save-dev
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.
ember server
ember test
ember test --server
ember build
MIT
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Crafted with <3 by John Otander (@4lpine).