Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@warp-works/warpjs-filter-box
Advanced tools
In webpack
, add the following folder to the partial directories:
const FilterBox = require('@warp-works/warpjs-filter-box');
...
module: {
loaders: [
...,
{
test: /\.hbs$/,
loader: 'handlebars-loader',
query: {
...
partialDirs: {
...,
FilterBox.templatesDir,
}
}
}
]
}
In your template, you can now use:
<div class="warpjs-filter-box-container">
<div class="pull-right">
{{>warpjs-filter-box-template placeholder="Filter my items"}}
</div>
<table>
<tbody>
<tr class="warpjs-filter-box-item">
...
</tr>
</tbody>
</table>
</div>
The filter-box will apply the filtering to items with the class
warpjs-filter-box-item
in the same warpjs-filter-box-container
as the filter
box.
Those classes are exported for convenience with:
FilterBox.CONTAINER_CLASS
FilterBox.ITEM_CLASS
This simple implementation will call $(element).text()
and compare
.val()
in lower case.
In your client code, to enable the listeners, all you have to do is:
const FilterBox = require('@warp-works/warpjs-filter-box');
FilterBox.init($);
FAQs
Simple UI filter-box
The npm package @warp-works/warpjs-filter-box receives a total of 7 weekly downloads. As such, @warp-works/warpjs-filter-box popularity was classified as not popular.
We found that @warp-works/warpjs-filter-box demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.