How to write dynamic inside a custom Component?
onclick="openCity(event, 'London')
I want to use this kind of approach, to build a tab component in webflow myself. The problem is, that i can't make it work to fill in the attribute with dynamic content inside.
Does it work like this?
onclick="openContent(event, '{{tabcontent}}')"
2 Replies
Last i tried setting the onclick attribute in Webflow it said I couldn’t because that name is reserved. That was before the custom element though so maybe it’s possible now?
I’m not sure how to use plaintext to hook it up to CMS content or if that’s possible.
okay damn i thought that would be nice to also have some accessibility possiblities. So i need to build it with a normal custom code element like always .:)