Markdown Code Component with Copy to Clipboard #2259
-
Is your feature request related to a problem? Please describeWe have a card that displays some code lines using a Describe the solution you'd likeA way to copy the code in the Describe alternatives you've consideredMarkdown 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. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @nipunchamikara I think this should be doable via |
Beta Was this translation helpful? Give feedback.
-
Hello @mturoci, yep you are right, it works with |
Beta Was this translation helpful? Give feedback.
-
Docs should be there - https://wave.h2o.ai/docs/widgets/form/text/#with-markdown, but feel free to make a PR if you think there is a room for improvement. |
Beta Was this translation helpful? Give feedback.
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.