Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SC.ask() and SC.confirm() behave like modal window

    How do I make SC.ask() or SC.confirm() windows behave like a modal window?

    #2
    Nothing is required, since they already do behave as modal windows.

    If there is some way in which you think they don't behave like modal windows, please be specific.

    Comment


      #3
      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


        #4
        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

        Working...
        X