Greetings.
I have a question about this functionality. I’d like to know if two things are possible:
- Rendering one SVG or another, depending on the
typefield. For example, if type is video, one icon; if it’s gallery, another icon. - Hidden an element based on whether the
authorfield exists.
Data:
[
{
"type": "video",
"url": "https://www.youtube.com/watch?v=dQw4w9WXcQ",
"autor": "Rick Astley"
},
{
"type": "gallery",
"url": "https://freepik.com/free-photos-vectors/gallery"
}
]
I currently have something like this for point #2 but it doesn’t work.
Screenshot: https://imgur.com/a/tiBsNFK
Post a Reply
You must be logged in to post a comment.