Skip to main content
akshayg0010
July 28, 2022
Question

Change image dynamically

  • July 28, 2022
  • 14 replies
  • 0 views

I have the requirement where i need to change the image in card layout dynamically.

Can someone help

    14 replies

    stefanhelzle0001
    Brainy
    July 28, 2022

    You need to just change the assigned value. More details -> better answers.

    akshayg0010
    July 28, 2022

    So the requirement is in card layout i need to display image and text.

    Eg: Image1 and text1 needs to be displayed first then it should change to Image2 and text2 then to Image3 and text3 then to Image4 and text4 and finally it should show image1 and text1 and the cycle continues.

    Note text is short description about image eg: if the image is of Apple then text is Apple.

    stefanhelzle0001
    Brainy
    July 28, 2022

    Should this happen automatically or triggered by a user interaction? If automatically, what is your use case?