Skip to content

How to set the VTextField to required? #385

Answered by jourdain
Theodliu asked this question in Q&A
Discussion options

You must be logged in to vote

Since that required property is not listed in Vuetify API it is getting missed by trame, but can dynamically be added by using __properties= like described in the API here.

    vuetify.VTextField(
        label="defectName",
        v_model=("defectForm",),
        required=True,
        __properties=["required"],
    )

Full example showing the solution

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@callback00
Comment options

@callback00
Comment options

@jourdain
Comment options

Answer selected by jourdain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants