$.filterhandler()
Summary
Create dropdowns with unique values from data.
Benefits
Gives user ability to generate dropdowns for usage in dashboard using simple config.
Usage
$('.product-list').filterhandler({
url: 'filters',
cols: ['product', 'city']
})
This should create two dropdowns with unique values from the columns product and city.
Extending along with the above, $.filterhandler()
should be able to handle NavBar filters. Navbar filters include daterangepicker, multi/single select dropdowns, dropdowns that filter down items based on parent dropdowns.
The NavBar filters should have easy extension hooks to operate individually updating URL params or only on click on <form>
Apply button.
The navBar filters component should have overridable template for "Applied filters" boxes with clear button for each value per UI control or clear all applied filters for same UI control