Selectable Labels
Opened this issue · 4 comments
In the comment here #115 (comment) it was suggested to use textFieldD_
to emulate this:
textFieldD_ (WidgetValue "Here is something that Mike wrote") [readOnly]
`styleBasic` [
border 0 transparent,
radius 0,
bgColor $ rgbHex "#515151"
]
However there are some serious limitiations: The content that should be displayed comes from user-data and might be longer.
Therefore I need support for something like multiline
and ellipsis
, but those are only available for label, not for textArea (for obvious reasons).
You can use textAreaD_
instead, and it would provide most of what you are expecting. I most likely meant to use that widget instead of textField
.
There is no support for ellipsis when using textArea
. Although it could be added, I wonder if it is really needed. The textArea
widget already includes a scroll
widget, and the content will not be cut.
The weird newline characters in textField
are expected since it is a single-line text widget.
I tried using textAreaD_
, my main problem with it is, that it doesn't break the text. I don't want to have that horizontal scrollbar.
I also vote for this feature.
Working on an app which will render lines of text each of which can be interacted with independently (having it's own styles/hovers etc), currently represent them as label
s and all of them need to be selectable.
I will try to go textFieldD_
route to enable selection, but I'm also curious how much overhead would this be for monomer
to render when compared to rendering/processing only labels.