You need to sign in to do that
Don't have an account?
VICKY_SFDC
dynamic image display based on conditions In Lightning component
Senario:
Total Numer of Case=19
Case with Overtime=16
Now
16/19,,so Green Arrow Image display in Lightning Component APP
if its
20/19 (Or more),,,red arrow image should display in LIGHTNING COMPONENT UI
Any Resource
Any Trailhead link will be very helpful for me
thanks in advance
Total Numer of Case=19
Case with Overtime=16
Now
16/19,,so Green Arrow Image display in Lightning Component APP
if its
20/19 (Or more),,,red arrow image should display in LIGHTNING COMPONENT UI
Any Resource
Any Trailhead link will be very helpful for me
thanks in advance
To display a dynamic image in a Lightning component based on certain conditions, you can use the <aura: if> tag in the component markup to conditionally render an image based on the values of the conditions. You can set the values of these attributes dynamically using a controller or helper method to calculate the values based on the number of cases with overtime.
Make sure to upload the green and red arrow images as static resources in your Salesforce org.
Please see related: https://salesforce.stackexchange.com/questions/301350/dynamic-image-reference-in-lightning-component
https://help.salesforce.com/s/articleView?id=sf.lightning_page_components_visibility.htm&type=5
Thanks