Closed ryanlanciaux closed 8 years ago
This is addressed in : https://github.com/GriddleGriddle/griddle-core/pull/62/commits
Working on updating griddle-render to support the new action. Custom header components will need to be used to specify how exactly the filter is added (since we don't want to be defining how someone needs to style their app).
This has been added to the 0.x version (which is not using griddle-core) of Griddle and the 1.0 alpha version (which is using griddle-core).
Usage:
Take a look at
LocalDataPlugin.filter
and add the ability to filter by individual columns as well as all columns.We should probably take an array of columns into this method instead of just a single filter string. How I'm envisioning this working is that we would have an actionCreator for all filter / column filter -- each of the filters would get added to an array on the store. The LocalDataPlugin.filter would loop through this array and apply the filter against the state data. When the filter is cleared, it would clear out the array of filters and reset the data (again through an actionCreator that the store receives).