-
in the below example:
I want to show div container1 if only element1 has items, and div container2 if only element2 has items. how do I achieve that in the render function in javascript? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can I ask what the value of |
Beta Was this translation helpful? Give feedback.
-
okay I have figured out a way to do it: we can get the collection through render by checking the state collection and seeing if there are items in the source. sorry the github code display is buggy due to html escape using `
|
Beta Was this translation helpful? Give feedback.
okay I have figured out a way to do it:
we can get the collection through render by checking the state collection and seeing if there are items in the source.
sorry the github code display is buggy due to html escape using `