Single Editor for two different DataTables on same page
Single Editor for two different DataTables on same page
Loren Maxwell
Posts: 406Questions: 99Answers: 10
in Editor
I have two DataTables on the same page that query the same MySQL database table on the backend (they are just filtered differently, such as "Employees in North America" and "Employees in Europe").
Is it possible to use the same Editor for both DataTables?
This question has an accepted answers - jump to answer
Answers
Currently no - sorry. There can be multiple Editor instances for a single DataTable, but currently not multiple tables for a single Editor instance. You'd need to make two Editor instances.
Allan
Thanks, @allan.
Based on that, here's my solution in case anyone else is looking for something similar:
This allows me to update
editor_config
only once and the changes are reflected in both editor instances.Perfect!
Thanks for sharing that with us.
Allan