Hi,
I wants to add some link/text next to text to copy the content.
I saw that you can add a button with utils.copyToClipboard() event on click I'm having two problems with this solution:
you have too much margin
in case of textarea, I don't know where to put the button
Is there any way to use utils.copyToClipboard() in the text itself?
I was thinking like to add an icon at the end of the text with a link that trigger this event.
Unfortunately I can't use tables here: I'm in the ListView component.
Also i think that with tables i've the same issue in terms of margin between the text and the button.
What about position?
Is there any easy way to overlap components?
I imagine with custom css, but I don't think make sense for this.
You might also try using an HTML component to render your text, which supports adding click handlers to specific elements within the component. The docs have a more detailed and general explanation.
In your case, you might specify the type property of each element when you specify it as a click target, and then access that property in the click handler: