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
It doesn't seem to be possible to set boolean arguments based on state.
Example
<input disabled>
but having disabled based on state, so something like
<input ={disabledinput?'disabled':''}>
I want this for select options.
If this is in fact possible, then it wasn't clear to me from reading the docs (Or I missed it).
Thank you.
The text was updated successfully, but these errors were encountered:
<script type="text/mvl" id="template"> <input If={disabled} type="text" disabled/> <input Else type="text"/> <button @click={toggle()}>Toggle</button> </script> <script> Moon({ root: "#app", view: document.getElementById("template").innerHTML, disabled: false, toggle() { this.update({disabled: !this.disabled}); } }); </script>
Sorry, something went wrong.
acd98dc
No branches or pull requests
It doesn't seem to be possible to set boolean arguments based on state.
Example
but having disabled based on state, so something like
I want this for select options.
If this is in fact possible, then it wasn't clear to me from reading the docs (Or I missed it).
Thank you.
The text was updated successfully, but these errors were encountered: