Binding lightning:input checkbox value. Must bind to 'checked' not 'value'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:attribute name="testBoolean" type="Boolean" default="false" /> | |
<lightning:input name="testBoolean" label="Test Boolean" type="checkbox" checked="{!v.testBoolean}" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes but the 'c' is lowercase. ie. onchange.
From the docs : "You can define a client-side controller action for input events like onblur, onfocus, and onchange." https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_input.htm