Skip to content

Change the functionality to allow filtering on a table and restrict elements from the filter - #17

Open
doolittlece wants to merge 3 commits into
awbush:masterfrom
doolittlece:master
Open

Change the functionality to allow filtering on a table and restrict elements from the filter#17
doolittlece wants to merge 3 commits into
awbush:masterfrom
doolittlece:master

Conversation

@doolittlece

Copy link
Copy Markdown

There is a new input on the options ignore that allows you to ignore elements in a table using a class. The rest of the functionality stayed the same. The ignore defaults to the class filter-ignore but you can set it to any class you want. You just pass the class name in the options under the ignore like {ignore: 'a-class-to-ignore'}.

Casey Doolittle and others added 3 commits August 6, 2013 13:41
You can add an ignore to the options that allows the filter to ignore
children that have that class. The ignore defaults to filter-ignore. To
support this changed to use the jQuery.text() function.
Changed the .children to .contents to support text nodes.
Change to jQuery over $ in testing found that it was causing problems
with other frameworks for example prototype. To be safe, change to use
the jQuery instead of the $ alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant