confirmAlert({
**parentId: '***' // some id where should it host**
title: 'Confirm to submit', // Title dialog
message: 'Are you sure to do this.', // Message dialog
childrenElement: () =>
Custom UI
, // Custom UI or Component
confirmLabel: 'Confirm', // Text button confirm
cancelLabel: 'Cancel', // Text button cancel
onConfirm: () => { console.log('a'); }
});
can we add id of the parent container to which the alert should be added to.
createElemetReconfirm -> document.body.appendChild(divTarget);
confirmAlert({ **parentId: '***' // some id where should it host** title: 'Confirm to submit', // Title dialog message: 'Are you sure to do this.', // Message dialog childrenElement: () =>