Sometimes when you develop a backend module you need a small verification from the user.
For that we have modals in the user management module or the Media module.
In the older backend modules these Modals always have fluid templates and a small JS component opens a Modal with the HTML content. But as you not always want to render modal markup in your templates it would ne nice to have a little JS API to open a modal.
Description
Sometimes when you develop a backend module you need a small verification from the user. For that we have modals in the user management module or the Media module.
In the older backend modules these Modals always have fluid templates and a small JS component opens a Modal with the HTML content. But as you not always want to render modal markup in your templates it would ne nice to have a little JS API to open a modal.
We already extended
window.NeosCMS
withConfiguration
andTools
in https://github.com/neos/neos-development-collection/pull/3302So my suggestion would be that we also have
window.NeosCMS.Modal
to open a confirmation modal that has the look and feel of neos.And in the options we can define things like buttons with callbacks or if the modal should not open immediately.
Expected behavior
Modals should look like that:
Actual behavior
And not like that (RedirectHandler UI)