-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Some backends or APIs require true/false values from checkboxes to be provided in a certain way (e.g. "1" vs "0", or non-empty vs. empty string). It would be great if there were a way to specify the true and false values for a checkbox input. I see that there is a way to bind the value to a dynamic property, but I haven't found a way to set a non-dynamic value. Basically something like this:
<input
type="checkbox"
v-model="toggle"
v-true-value="1"
v-false-value="0">
Thanks for your consideration.
Redithion, ajeetku, peketamin, scasic, ErgoSphere and 1 more
Metadata
Metadata
Assignees
Labels
No labels