Use a template in a custom modal window instead of using the default modal
Use a template in a custom modal window instead of using the default modal
erieri
Posts: 2Questions: 2Answers: 0
I'm trying to add a template to a custom modal window that I wrote. I want to be able to edit a row in a datatable without using the built in modal. I was thinking that I could just use the editor in standalone mode, but that's not possible if I'm using a datatable as well.
This discussion has been closed.
Answers
Hi @eriieii ,
One option that may be useful is that you can create your own styling templates, as shown in this example here - you don't have to use the built-in modal.
You could also just use the Editor API to edit a row behind the scenes - you don't need to open the modal. For example in this example, something like:
This would enable you to get the new values anyway you like, then to use Editor to submit them to the server.
Hope that helps,
Cheers,
Colin