Fall_out_Boy Posted November 25, 2021 Share Posted November 25, 2021 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 ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 25, 2021 Share Posted November 25, 2021 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 Quote Link to comment Share on other sites More sharing options...
Fall_out_Boy Posted November 25, 2021 Author Share Posted November 25, 2021 Hello and thank´s for the fast reply. It is a uniGUI Complete - Professional Edition which was bought in march 2021. Best regards Alex Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 25, 2021 Share Posted November 25, 2021 Thank you. Please adjust your forum email address: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.