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

Setting default options #95

Open
diesl opened this issue Apr 23, 2018 · 1 comment
Open

Setting default options #95

diesl opened this issue Apr 23, 2018 · 1 comment

Comments

@diesl
Copy link
Contributor

diesl commented Apr 23, 2018

It would be nice if it was possible to set some default options for all Touchspins of a project. I'll quote from the DataTables' Website that perfectly describes what I mean and also has some example code.

https://datatables.net/manual/options#Setting-defaults:

When on projects that use multiple DataTables it is often useful to set the initialisation defaults to common values (for example you might want to set the dom option to a common value so all tables get the same layout). This can be done using the $.fn.dataTable.defaults object. This object takes all of the same parameters as the DataTables initialisation object, but in this case you are setting the default for all future initialisations of DataTables.

So for example my Touchspins would all share the same buttonup_txt, buttondown_txt, buttondown_class and buttondown_class, while I would initialize them with different min and max values.

@cuartas15
Copy link

Isn't there a solution for this yet?

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