I am trying to add a custom element to our carta setup. I have a plugin that adds a prefix to a line and a transformer that transforms that item to a special kind of list that looks like this:
<li data-item-id="12345">List Item</li>
And I now want to add a custom renderer using the plugin-component thing. But sadly it looks like it wraps the li into a div and I have no way to access the data attribute in the custom component. Or am I mistaken?
I am trying to add a custom element to our carta setup. I have a plugin that adds a prefix to a line and a transformer that transforms that item to a special kind of list that looks like this:
And I now want to add a custom renderer using the
plugin-componentthing. But sadly it looks like it wraps theliinto adivand I have no way to access the data attribute in the custom component. Or am I mistaken?