Skip to content

Commit 9ff94df

Browse files
committed
add modalForm deafult settings object to the docs
1 parent 5bca15b commit 9ff94df

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,29 @@ asyncSettings.dataKey
359359
asyncSettings.addModalFormFunction
360360
Sets the method needed for reinstantiation of event listeners on button after asynchronous update. ``Default: false``
361361

362+
modalForm default settings object and it's structure
363+
****************************************************
364+
365+
.. code-block:: html
366+
367+
triggerElement.modalForm({
368+
modalID: "#modal",
369+
modalContent: ".modal-content",
370+
modalForm: ".modal-content form",
371+
formURL: null,
372+
errorClass: ".invalid",
373+
submitBtn: ".submit-btn",
374+
asyncUpdate: false,
375+
asyncSettings: {
376+
closeOnSubmit: false,
377+
successMessage: null,
378+
dataUrl: null,
379+
dataElementId: null,
380+
dataKey: null,
381+
addModalFormFunction: null
382+
}
383+
});
384+
362385
Forms
363386
=====
364387

0 commit comments

Comments
 (0)