I cant seem to get the heart icon (like button) counter to work.
Is there code available ?
Discover the future of music creation with Sprunki Retake, offering unmatched interactive entertainment and endless creativity.
@Sprunki HTML Structure: The heart icon is represented by an emoji inside a span with an onclick event to call toggleLike().
CSS Styling: The .liked class changes the heart color to red when liked.
JavaScript Logic: The toggleLike() function updates the like count and toggles the heart icon’s style based on the isLiked flag.
Thank you, is this just the icon generator?
We are looking for html code that generates the icon count.
(I.e. when the user clicks the heart icon, it then increases the count, so users can see how many people have liked a comment.) Same concept as how facebook and instagram works.
Hi,
That is the icon itself without functionality. At the moment we do not have such a fully functional component example so you will need to implement it by referring to the this example. In a future update, we can consider it.
Regards.