Jump to content

UniImage->UniEvents->SRC


Fall_out_Boy

Recommended Posts

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 ? 

 

 

Link to comment
Share on other sites

Hello,

2 minutes ago, Fall_out_Boy said:

I'm currently developing my first application with UniGui

Thank you for your interest in UniGUI.

Are you using trial version?

3 minutes ago, Fall_out_Boy said:

config.img ={'src':'setSrc(files/images/bg.jpg)'};

Just use:

UniImage.Url property

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...