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](https://secure.gravatar.com/avatar/a3356fe3206312cf0cbd6a6befcac495/?default=https%3A%2F%2Fvanillicon.com%2Fa3356fe3206312cf0cbd6a6befcac495_200.png&rating=g&size=120)
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