Ok, so to find out more about modals, here is how they were implemented:
- first jsModal was added: https://github.com/atk4/ui/pull/71/files.
It creates new modal markup and activates is with semantic ui. This code is more than a year old, so it has been cleaned up since then, but it should give you the idea.
- we added “static modals” or “Modal view” later. It adds a hidden modal div and only invokes semantic ui when needed. https://github.com/atk4/ui/pull/194
so we have two implementations of modal. CRUD uses jsModal. They behave very similarly though.
ATK does not have support for setting modal “not closable”, but it’s doable in SemanticUI. Perhaps setOption here can help:
Still this won’t be usable in CRUD, because it uses jsModal: https://github.com/atk4/ui/blob/develop/src/CRUD.php#L138
so it would require some tweaks to the core classes to achieve your goal.