I think your load-modal is really pretty.
But I need some custom function in this.
Put it in simple way, if I load a page for add a entity, I want to after create entity done, close modal, and notify the main page , then do something else.
If doesn't have a callback function, how do I know the modal is closed by cancel button or confirm button?
The other question is how do I close modal inside, not in main page.