Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter with specific jquery selector that will be applied on the td #116

Closed
mashinista opened this issue Nov 26, 2014 · 3 comments
Closed

Comments

@mashinista
Copy link

This is feature request for filter based on values in the rendered html table cell. With the column_data_type:rendered_html parameter, filter would use value found in the html element with the class attribute such as class="server-value-danger" in the example below

<td>
<ul class="inline">
<li><ul class="unstyled"><li class="server-value-danger">82</li><li><span class="inlinesparkline">1,4,4,7,5,9,10</span></li></ul></li>
 <li><ul class="unstyled min-max"><li>min:24</li><li>max:82</li></ul></li>
</ul>
 </td>

Opened this request in reply to discussion found at yadcf forum at https://groups.google.com/forum/#!topic/daniels_code/FzD3vjfR-dM

Thanks

@vedmack
Copy link
Owner

vedmack commented Nov 26, 2014

Just to be clear, rendered_html should be used when you are using render function of columnDefs or similar, that produces a html code, in your case you should use column_data_type: 'html' for simple html that is being present in td element.
but that no enough for your complicated html content, so I will add the ability to provide yadcf with selector to target the content.

vedmack added a commit that referenced this issue Nov 30, 2014
…t - html_data_type support now 'selector' type (must provide value for 'with html_data_selector' too), #116
@vedmack
Copy link
Owner

vedmack commented Nov 30, 2014

Grab the latest lab version 0.8.7.beta.2 and check the example: http://jsbin.com/lecuziseha/1/edit?html,js,output

Read updated docs for html_data_type and html_data_selector properties in the yadcf js file

@vedmack vedmack closed this as completed Nov 30, 2014
@mashinista
Copy link
Author

Thanks a lot Daniel both for feature and example. Nice work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants