Created
November 17, 2015 03:18
-
-
Save nateyolles/01ac869591c258e1e609 to your computer and use it in GitHub Desktop.
AEM Classic UI component dialog checkboxes using the checkbox xtype
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
<!-- Checked checkbox will result in a String property of "on" --> | |
<myCheckbox | |
jcr:primaryType="cq:Widget" | |
fieldLabel="My Checkbox" | |
name="./myCheckbox" | |
xtype="checkbox"/> | |
<!-- Checked checkbox will result in a Boolean property of true --> | |
<myBooleanCheckbox | |
jcr:primaryType="cq:Widget" | |
fieldLabel="My Boolean Checkbox" | |
inputValue="true" | |
name="./myBooleanCheckbox" | |
xtype="checkbox"/> | |
<myBooleanCheckboxType | |
jcr:primaryType="cq:Widget" | |
ignoreData="{Boolean}true" | |
name="./myBooleanCheckbox@TypeHint" | |
value="Boolean" | |
xtype="hidden"/> | |
<!-- Checkbox defaults to checked --> | |
<myBooleanCheckbox | |
jcr:primaryType="cq:Widget" | |
fieldLabel="My Boolean Checkbox" | |
inputValue="true" | |
name="./myBooleanCheckbox" | |
checked="{Boolean}true" | |
xtype="checkbox"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment