Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Added a Filter that can search by column#306

Open
SMxJrz wants to merge 5 commits into
daniel-nagy:masterfrom
SMxJrz:filtering
Open

Added a Filter that can search by column#306
SMxJrz wants to merge 5 commits into
daniel-nagy:masterfrom
SMxJrz:filtering

Conversation

@SMxJrz

@SMxJrz SMxJrz commented Mar 2, 2016

Copy link
Copy Markdown

First off: Great table, I really love the look and feel, and it has worked great for me so far.

So I generally have had needs to be able to filter by column for my applications and I noticed that this library doesn't really have that out of the box. The beautiful thing about this library is the control i have over the Dataset with the filtering and orderBy. I had originally wrote this as a custom filter inside of the apps i had used the table in, but I had noticed that it's pretty much the same code every time i need it in an app, I feel like the filter is generic enough so I had the idea of just adding it as a filter in this library.

The general idea is that it's still up to the user to provide the interface for filtering but now they can reference this filter and hook up their inputs to it. The filter just requires an object that maps the columns to the filter (easy enough if you define the columns object like the example app)

This filter is case insensitive with regards to the data in each column. I have also updated the demo app to use the filter, you can see how it works there, What do you think?

-SM

P.S. - I think this would address #283 but they are probably looking for a full-on magic UI feature but I think the users should design their filter ui's the way they want it to look and feel

SMxJrz added 5 commits March 1, 2016 08:47
… filter on each column. The filter uses the column object to perform the checks and It will do lookups to the table data based on the orderBy attribute, (alternatively you can provide searchBy in that object if you don't want to do ordering for that particular column). This change only provides the filter for the user, how they lay it out should ultimately be up to them.
… filter on each column. The filter uses the column object to perform the checks and It will do lookups to the table data based on the orderBy attribute, (alternatively you can provide searchBy in that object if you don't want to do ordering for that particular column). This change only provides the filter for the user, how they lay it out should ultimately be up to them.
# Conflicts:
#	src/scripts/mdTableFilter.js
# Conflicts:
#	src/scripts/mdTableFilter.js
@kood1

kood1 commented Mar 8, 2016

Copy link
Copy Markdown

+1

10 similar comments
@rhllor

rhllor commented Mar 9, 2016

Copy link
Copy Markdown

+1

@datenbrille

Copy link
Copy Markdown

+1

@marcincichocki

Copy link
Copy Markdown

+1

@flick36

flick36 commented May 15, 2016

Copy link
Copy Markdown

+1

@JaySardhara

Copy link
Copy Markdown

+1

@gss-patricia

Copy link
Copy Markdown

+1

@nish-nair

Copy link
Copy Markdown

+1

@jpirela

jpirela commented Nov 5, 2016

Copy link
Copy Markdown

+1

@kevinbatongbakal

Copy link
Copy Markdown

+1

@veneliniliev

Copy link
Copy Markdown

+1

@skortchmark9

Copy link
Copy Markdown

Is there a demo of this anywhere?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.