EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  dojo dialog - remove x

    Posted Wed November 14, 2018 07:45 AM

    i am using a dojo dialog and would like to remove the X to close. I googled and found the following code, but just not sure how to implement into egl.

    dojo.style(dijit.byId("myDialog").closeButtonNode,"display","none");

     

     

    nick_tn


  • 2.  Re: dojo dialog - remove x

    Posted Thu November 15, 2018 10:58 AM

    Hi Nick,

    you can hide the close button from the DojoDialog in the CSS.

     

     

    .dijitDialogCloseIcon {        display: none;}

     

     

    Marcel-D


  • 3.  Re: dojo dialog - remove x

    Posted Thu November 29, 2018 09:55 AM

    Hey Marcel,

    What if i want to condition the close button. So in case A show it, in case B dont show it.

    Also, if i show the Close button, can i do something in EGL after it is clicked?

    Ideally, i would like to be able to implement this type of code below. It would disable the X and also disable the escape key from closing window.

    Not sure if this would be a PRM.

    require(["dijit/Dialog", "dojo/domReady!"], function(Dialog){    myDialog = new Dialog({        title: "My Dialog",        content: "Test content.",        style: "width: 300px",        closable: false // here    });});
    nick_tn


  • 4.  Re: dojo dialog - remove x

    Posted Thu November 29, 2018 10:38 AM

    Hi Nick,

    you can use the onClose event handler to do something after the close button was clicked.


    You can use also css to hide or show the close button.

     

    Take a look at the example

     

     

     

     

     

    Marcel-D

    Attachments