RFE: Style class for prompt text in text input controls
Dirk Lemmermann
dlemmermann at gmail.com
Fri Sep 17 10:23:17 UTC 2021
I noticed that the „Text“ node used to display the prompt text of a text input control could definitely use its own style class. At least if you want to use a different font for it than for the normal text. Currently the prompt text node is bound to the same font property of the control as the regular „Text“ nodes.
I had a customer request today to style them differently in a TextArea: the prompt text with a light font, the regular text with a bold font. The only way to implement this was to listen to the text property of the TextArea and add / remove the class „blank“ to it. Then I could use this class in the CSS file.
Dirk
More information about the openjfx-dev
mailing list