Dynamic image on button, label or image media

Forum to discuss the new web client version of Servoy.

Dynamic image on button, label or image media

Postby rieder » Wed Jun 23, 2021 9:47 am

Hi

Using Servoy Default components, I so far could set the property «imageMedia» for a label dynamically by readying the image from database (solutionModel.getMedia(...)).
How can this be achieved with Bootstrap Components like Label, Button or Image Media?

Thanks and regards
Birgit
Last edited by rieder on Thu Nov 18, 2021 3:34 pm, edited 1 time in total.
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 141
Joined: Thu Jan 26, 2012 5:18 pm

Re: Dynamic image on button, label or image media

Postby jhilgers » Wed Jun 23, 2021 10:10 am

Hi Brigit

styleclassexpression might be what you are looking for.

see: https://wiki.servoy.com/display/DOCS/NG ... patibility "Onrender implementation"
best / viele Grüße
Jo ~;-)
jhilgers
 
Posts: 5
Joined: Wed Nov 13, 2019 2:19 pm
Location: Cologne / Germany

Re: Dynamic image on button, label or image media

Postby rieder » Wed Jun 23, 2021 10:36 am

Hi Jo

Thank you for your response and the "Grüsse".

I don't see, how styleclasses can be dynamic, since I have to define them at development time. What I'm looking for is a possibility to attach any image (from database) to a component. Or am I missing the point?

Best regards
Birgit
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 141
Joined: Thu Jan 26, 2012 5:18 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest