How do I make SC.ask() or SC.confirm() windows behave like a modal window?
Announcement
Collapse
No announcement yet.
X
-
I was looking for a way to set opacity, just like we can do with Window objects.
Code:myWindow.setShowModalMask(true); myWindow.setModalMaskOpacity(25);
Not sure how to do that with SC.ask() or SC.confirm().
I'm using theme Stratus.Last edited by alina.frey; 11 Oct 2021, 08:59.
Comment
-
I found my own answer.
In the entry point class, we can set the default properties for the Dialog class behavior:
Code:Dialog dialogDefaultProperties = new Dialog(); dialogDefaultProperties.setShowModalMask(true); dialogDefaultProperties.setModalMaskOpacity(25); Dialog.setDefaultProperties(dialogDefaultProperties);
Comment
Comment