lundi 24 août 2015

In AEM disable scroll button when checkbox is unchecked, using javascript to check if scroll more has been enabled or disabled

This is the XML code for the check box I've created for enabling the scroll more button. I've added a Description, a field label and an input of true if the checkbox is clicked. I need to create javascript that will check if the scroll more button has been enabled or not and if it has return true if not return false.

<items jcr:primaryType="cq:WidgetCollection">
<custom
jcr:primaryType="cq:Widget"
collapsed="{Boolean}false"
collapsible="{Boolean}false"
xtype="dialogfieldset">
<items jcr:primaryType="cq:WidgetCollection">
<scrollMore
jcr:primaryType="cq:Widget"
fieldLabel ="Enable Scroll More Button"
fieldDescription="Enable the 'scroll more' button on this page"
inputValue="true"
defaultValue="false"
name="./scrollMore"
xtype="checkbox"/>




Aucun commentaire:

Enregistrer un commentaire