The modal options; dataElement is required.
instance.UI.addCustomModal({
dataElement: 'aboutModal',
header: { title: 'About' },
body: { innerHTML: '<p>Contract review workspace</p>' },
footer: {
children: [
{ title: 'Close', button: true, onClick: () => instance.UI.closeElements(['aboutModal']) },
],
},
});
instance.UI.openElements(['aboutModal']);
Adds a custom modal. A modal with the same
dataElementreplaces the existing one. The modal stays hidden until it is opened withopenElements([dataElement]); clicking the backdrop or pressing Escape closes it unlessdisableBackdropClick/disableEscapeKeyDownis set.header,bodyandfootereach take{ title, className, style, innerHTML, children }, wherechildrenare{ title, button, className, style, onClick }; alternativelyrenderreturns an element or a string shown as the content.