-
Notifications
You must be signed in to change notification settings - Fork 284
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
Configure globally #610
Comments
Do you mean like this (it's from the yadcf js file docs)?
The third argument is being applied to all columns |
No, I mean global for every table. #287 requires you to set |
@vedmack will you accept a PR for this? and when is the next release expected? I need a single place to set languages rather than // template1.html
oTable.yadcf([/* unique column definition */], {
language = {'select': 'Select value'}
});
// template2.html
oTable.yadcf([/* unique column defintion */], {
language = {'select': 'Select value'}
}); |
Sure, a PR is always welcomed |
Sent #617 |
thanks! I will try to merge it when I'll find some spare time |
@vedmack sorry to ping but any chance of seeing this merged and released? |
Resolves #610 Allow set global defaults for the configuration (languages / etc')
It would be good if we could set global defaults for the configuration, particularly for
language
$.fn.yadcf.defaults = {}
I think it would just be a simple case of adding
$.extend({}, $.fn.yadcf.defaults, params)
here https://github.com/vedmack/yadcf/blob/master/dist/jquery.dataTables.yadcf.js#L4642The text was updated successfully, but these errors were encountered: