ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Custom ui5 textarea property

Open kostadin-kar opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. The textarea component allows multiline values to be entered, which is pretty useful. We would really like it if there could be a possibility to add a button inside the textarea control. It would switch from textarea view and one that minifies the content and looks like the input webcomponent with a button on the right.

Describe the solution you'd like It would look like this:

Screenshot 2020-06-29 at 18 12 13 Screenshot 2020-06-29 at 18 12 23

Describe alternatives you've considered Encoding the text inside the control does the job, but does not look user friendly.

kostadin-kar avatar Jun 29 '20 15:06 kostadin-kar

Hello,

We either need the possibility to add one or more buttons at the right-most column of the text area (no text overlapping shall happen). Other option would be to have a .HBS hook where we can plug the buttons ourselves.

We imagine that it would look like the Input component when it has buttons.

Best regards, Teodor

m1trix avatar Jun 29 '20 15:06 m1trix

There is a demo project, showing how one can extend the textarea: https://github.com/vladitasev/custom-textarea

Note: the partial is not released yet, so the demo project is still WIP. Once we've released the partial with the @next NPM release, we'll also update this demo project to show how you can elegantly import the original template and just implement the partial (as currently the original template is copy/pasted mostly).

vladitasev avatar Jul 06 '20 13:07 vladitasev