Closed soberstadt closed 8 years ago
@soberstadt there is an option :place_holder
Options:
...
:place_holder: The nil param defines the content displayed in case no value is defined for that field. It can be something like "click me to edit". If not defined it will show "-".
Sorry, maybe I didn't make myself clear.
We are currently using the place_holder option to provide placeholder text. But what I would like to do is use css to give those using the placeholder text a different style. So I could do something like this:
My thought is that this css class could be added on the js side and then removed once it's updated through successful update.
Does that make better sense?
@soberstadt ok. I will take a look on it
Thanks!
@seuros need feature
label
It would be really great to be able to style the span tags based on if the span was built and contains the placeholder text or not. Maybe something like
bip-placeholder
.My idea is to be able to style placeholders as grey text.
Would that be something you would be willing to add or accept a PR?