Multiple custom templates for editor

Multiple custom templates for editor

xfloydxfloyd Posts: 35Questions: 12Answers: 1

Hello,
Is it possible to have different template for editor's modal. I'm looking for a way to have different template for edit and different for create. Is that something that can be done with the datatables editor?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,761Questions: 1Answers: 10,111 Site admin
    Answer ✓

    The way to do that is to initialise two difference instances of Editor - each with its own template. Then assign the required instance to the button (or whatever activation you are using) for that action.

    Allan

  • xfloydxfloyd Posts: 35Questions: 12Answers: 1

    Wow, Allan you never stop to amaze me with your out of this world approach to things. I would never figured that one out, you opened whole new way to think about datatebles.

This discussion has been closed.