We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model
Additional modifiers for models to make it easy to work with from the JS side.
Scope Type casting and small transformations
Some ideas:
.number
.floor
.ceil
.round
.boolean
.string
.uppercase
.lowercase
.trim
.nullish
""
null
<select multiple>
<input checkbox>
.length
Non-goals Typing validation: we delegate this to browser native <input type> or to end-user discretion with their own library or custom code
<input type>
Yes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Scope
model
What do you want to happen?
Additional modifiers for models to make it easy to work with from the JS side.
Scope
Type casting and small transformations
Some ideas:
.number
: force number conversion.floor
/.ceil
,.round
? (TBD).boolean
: force boolean conversion.string
: force string conversion.uppercase
/.lowercase
(TBD)(dismissed: difficult to implement, confusing when typing spaces before next character).trim
: trim spaces too.nullish
: treat""
asnull
possibly(dismissed: doesn't add much, easy workaround with<select multiple>
,<input checkbox>
would be null if empy arrays.length
)Non-goals
Typing validation: we delegate this to browser native
<input type>
or to end-user discretion with their own library or custom codeI have searched for existing issues
Yes
The text was updated successfully, but these errors were encountered: