blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

[EditableText] Add support for rightElements in EditableText

Open jmhain opened this issue 6 years ago • 6 comments

Title says it all.

Edit: More Details

When an EditableText is being edited, I would like for the rendered input or textarea to display a minimal button or tag on the right, as can be done via the rightElement prop on an InputGroup.

jmhain avatar Feb 26 '18 19:02 jmhain

There's no room for any icon in an editable text, so I'm afraid the title doesn't say it all. Can you elaborate on your use case?

llorca avatar Feb 26 '18 19:02 llorca

Sorry, I updated the description with more details. The use case is to include a button for a file attachment while in edit mode, then a Tag with the filename of the attachment.

jmhain avatar Feb 26 '18 19:02 jmhain

I think this could work; it could be like the "clear" button in TagInput:

image

adidahiya avatar Feb 26 '18 20:02 adidahiya

doesn't sound much like an editable text but something much more complex instead, would probably need to rewrite most of the component. adding as feature request for now

llorca avatar Feb 26 '18 21:02 llorca

Want this too

goodmind avatar May 24 '19 01:05 goodmind

This would be super handy too. Feels like mirroring some of the InputGroup props in editableText would make sense. rightElement and leftElement at least.

colmex avatar May 09 '22 12:05 colmex