Create a reusable ConfirmModal modal that can replace window.confirm. The implementation of ConfirmModal should simply use ModalFactory as shown in the docs for the ProgrammaticModal. The following JS options must be configurable for the ConfirmModal:
- Title
- Content
- Enter Callback
- Cancel Callback
The class confirm-modal can be added to the modal via the ModalFactory class option. This will allows others to style the modal as needed. A more robust SCSS solution can also be implemented.
Create a reusable
ConfirmModalmodal that can replacewindow.confirm. The implementation ofConfirmModalshould simply useModalFactoryas shown in the docs for the ProgrammaticModal. The following JS options must be configurable for theConfirmModal:The class
confirm-modalcan be added to the modal via the ModalFactoryclassoption. This will allows others to style the modal as needed. A more robust SCSS solution can also be implemented.