Skip to content

wcomartin/filterer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filterer

This project was created for use in PlexPy, to create a dynamic list of conditions to filter by

built using React, wrapped with jquery...

Preview

Preview

Usage

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);

Contribute?

Check out the "Create React App" Docs DEVELOP.md