No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to apply success/positive state to q-field upon validation being correct?

    Help
    2
    2
    162
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jammy-git last edited by

      When the validation fails on an input field, the input gets a nice red border and the red error message is displayed below. I notice if you change the text-negative to text-positive on div.q-field__control, the red border gets changed to green.

      Is there anyway to automatically apply this state to the field/input/div automatically when all the validation rules pass?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        I’d just load a green checkmark icon or something like that. But for sure, with style attribute and a smart computed property, you can also do a lot.

        Scott

        1 Reply Last reply Reply Quote 0
        • First post
          Last post