Announcement

Collapse
No announcement yet.

Implementing a modal dialog with Espo.ui.Dialog class ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Implementing a modal dialog with Espo.ui.Dialog class ?

    I implemented a message box dialog based on the confirm dialog. How do I prevent clicks on the backdrop from closing the dialog?

    PHP Code:
    var diag = new Espo.ui.Dialog({closeButton:falseremoveOnClose:false,
                    
    backdroptrue,
                    
    header'<b>TITLE</b>',
                    
    className'dialog-confirm',
                    
    body'<span class="confirm-message">' "Bla bla bla <span style='color:red;'>BLAH</span>.",
                    
    buttons: [{
                            
    text'OK',
                            
    name'cancel',
                            
    onClick: function () {
                                
    diag.close();                            
                            }, 
    style'danger',
                            
    pullRighttrue
                        
    }
                    ]}); 
    diag.show() 

  • #2
    Pass the additional parameter:

    backdrop: 'static',

    But I'd recommend to use modal view.

    Comment


    • #3
      Originally posted by yurikuzn View Post
      But I'd recommend to use modal view.
      Can you point me to some example?

      Comment

    Working...
    X