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

State save for custom_func #92

Closed
rmckeel opened this issue Oct 15, 2014 · 2 comments
Closed

State save for custom_func #92

rmckeel opened this issue Oct 15, 2014 · 2 comments

Comments

@rmckeel
Copy link

rmckeel commented Oct 15, 2014

Would be excellent to have DataTables state save work for custom_func. In this case below, it would store for a select dropdown the value of -7 or -30.

Thanks!

                                                    yadcfOptions.push({
                                                           column_number: index,
                                                           filter_type: 'custom_func',
                                                           custom_func: yadcfAgeInDaysFilter,
                                                           filter_default_label: "within last...",
                                                          filter_container_id: 'foo',
                                                         data: [{
                                                                 value: -7,
                                                                 label: 'Last 7 days'
                                                         }, {
                                                                 value: -30,
                                                                 label: 'Last 30 days'
                                                           }]
                                                   });
vedmack added a commit that referenced this issue Oct 16, 2014
* New Feature, filters can be placed in the footer or header #85
* New Feature, filter_type: 'custom_func' support state saving #92
@vedmack
Copy link
Owner

vedmack commented Oct 16, 2014

added in 0.8.5.beta.3 see showcase http://yadcf-showcase.appspot.com/DOM_source.html

@vedmack vedmack closed this as completed Oct 16, 2014
@rmckeel
Copy link
Author

rmckeel commented Oct 16, 2014

You rock! Thank you, sir. Made a pull request that may help others for custom_func.

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

No branches or pull requests

2 participants