This project was created for use in PlexPy, to create a dynamic list of conditions to filter by
built using React, wrapped with jquery...
copy dist/filterer.jquery.js
to your js directory.
<script src="js/filterer.jquery.js"></script>
config = {
parameters: [
{"name": "Title", "type": "string", "value": "title"},
{"name": "Year", "type": "number", "value": "year"}
],
conditions: [
{coefficient: "year", operator: "is", value: ""},
{coefficient: "title", operator: "begins with", value: ""}
],
updateConditions: function(newConditions) {
// handle new conditions
}
}
$('element').filterer(config);
Check out the "Create React App" Docs DEVELOP.md