You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
We have a card that displays some code lines using a ui.markup component by wrapping the code in <code> tags along with a button to download the code as a file.
Describe the solution you'd like
A way to copy the code in the ui.markup to clipboard by either clicking a button, or markdown cards as a component instead of a separate card.
Describe alternatives you've considered
Markdown cards do have a copy to clipboard functionality, it is a card which means it cannot be added as a component. To add a card would mean having to remake the layouts. Also looked into copying to clipboard using inline JS, but it looked too complicated.
The text was updated successfully, but these errors were encountered:
Hey @nipunchamikara I think this should be doable via ui.text IIRC. It should support markdown out of the box together with copy to clipboard button. Please give it a try and let me know.
Hello @mturoci, yep you are right, it works with ui.text. I'm not sure if the docs didn't made it clear or if I missed something. Anyways, thanks a lot! Closing this issue.
Is your feature request related to a problem? Please describe
We have a card that displays some code lines using a
ui.markup
component by wrapping the code in<code>
tags along with a button to download the code as a file.Describe the solution you'd like
A way to copy the code in the
ui.markup
to clipboard by either clicking a button, or markdown cards as a component instead of a separate card.Describe alternatives you've considered
Markdown cards do have a copy to clipboard functionality, it is a card which means it cannot be added as a component. To add a card would mean having to remake the layouts. Also looked into copying to clipboard using inline JS, but it looked too complicated.
The text was updated successfully, but these errors were encountered: