Re-Open or keep open Create Modal after successful creation of new row
Re-Open or keep open Create Modal after successful creation of new row
nicholasgalea
Posts: 1Questions: 1Answers: 0
I am creating an application using editor where users will need to input a large number of records consecutively. I want to avoid the users having to manually click on the 'New' button in between each record. is there a way to keep the modal opened or re-open a new one after the 'Create' button is clicked?
I tried with the following:
editor.on( 'create', function ( e, json, data ) {
ringingRecordsTable.buttons( '.buttons-create' ).trigger();
} );
but the modal is closed, re-opened and closed again. Tried various events but had no success...
This discussion has been closed.
Answers
The
form-options
has aonComplete
option which can be used to tell Editor what to do with the modal when the action is complete. You can use it when callingcreate()
or useformOptions.main
when creating the Editor instance.This example might be of interest. It keeps the modal open on edit rather than create, but the principle is the same.
Allan