An Ember.js component to search and filter lists with CSS inline using Jets.js. Here's a demo.
Inside your ember-cli project, run ember install ember-jets
.
Now you have a {{jets-search}}
input component. Use it like this:
contentTag
- CSS selector for the DOM container you want to search (required)content
- Array to observe for changes. For instance your model array. This will make sure the search is synced with your content (optional)filter
- CSS selector if you want to specify what to search in each row (optional)wait
number in milliseconds to debounce/wait before triggering search (optional, not enabled by default)
Here's an example with filtering:
The below outlines the details of collaborating on this Ember addon.
git clone <repository-url>
this repositorycd ember-jets
yarn install
ember serve
- Visit your app at http://localhost:4200.
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"npm test
– Runsember try:each
to test your addon against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.