lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Feat]: Add Event handler on "text display" component

Open James4L opened this issue 1 year ago • 0 comments
trafficstars

Is your feature request related to a problem? Please describe. The current "text display" component does not support event handlers such as on-click. My particular use-case is when building out text data on pages, I would like to support clicking text/text box to copy to clipboard.

Describe the solution you'd like Event handlers such as on-click be added to the "text display" component to allow actions when a text box is clicked. Whilst I only require copy to clipboard for my particular use-case, the standard list of event handler actions should be implemented to keep things consistent.

Describe alternatives you've considered The "Link component does support event-handlers, however the problem is that by default it formats all of the text as a hyper-link. This then requires I manually override the styling on every component.

I also considered adding an image or some other component that supported event handler to copy the content of the adjacent text box to clip-board, whilst this works once off, if you have to repeat this for many many text boxes on a page it becomes unmanageable.

James4L avatar Apr 22 '24 04:04 James4L