Skip to content

Setting default options #95

@diesl

Description

@diesl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions