[Solved] [V1] QInput - How to add "red star" to indicate it is a required field
-
Dear Quasar team,
I walk through the demo of QForm at link https://quasar.dev/vue-components/form and we can see that it adds the star at the end of the label to indicate it is a required field. But is there a better way to color it as red?
I reproduced it at below link, thanks for your help.
https://codepen.io/Stanley-549393092/pen/WNepJJJ?editors=1111 -
you can’t do it without tampering with the dom, as label prop only allows string. why not make use of other slots/props to indicate that a field is required tho ie.
hint, prefix, prepend/append slots etc. etc...
?. -
@metalsadman Thanks! Finally I decide to keep it as the demo did although it is not so obvious. For you suggestion, I think it occupy additional space in the UI.