Jump to content

Fall_out_Boy

uniGUI Subscriber
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Fall_out_Boy

  1. Hello, everyone

    I'm currently developing my first application with UniGui and am trying to understand UniEvents with Ex JS 7.4.0 and CSS. I would like to set the src for a TUniImage via uniEvents.

    For this I looked at the following documentation:

    https://docs.sencha.com/extjs/7.4.0/classic/Ext.Img.html#cfg-src

    https://www.w3schools.com/tags/att_img_src.asp

     

    I tried the following Synthax to load an image via src but it didn't work:

    function beforeInit(sender, config)
    {  
       config.img ={'src':'setSrc(files/images/bg.jpg)'};
       config.style={'border-width':'2px', 'border-style':'solid' , 'border-color':'white'};
    }

    What ist the correct Snthax for this case ? 

     

     

×
×
  • Create New...