Skip to content

Instantly share code, notes, and snippets.

@kuckmc01
Last active August 8, 2016 18:00
Show Gist options
  • Save kuckmc01/680248a43044f7eb769039d6595f2632 to your computer and use it in GitHub Desktop.
Save kuckmc01/680248a43044f7eb769039d6595f2632 to your computer and use it in GitHub Desktop.
Nested Multifield in Touch UI Dialog using ACS Commons JSON Store
<rows jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/multifield"
class="full-width" fieldLabel="Rows">
<field jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fieldset"
acs-commons-nested="JSON_STORE" jcr:title="Row"
name="./compareRows">
<layout jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
method="absolute" />
<items jcr:primaryType="nt:unstructured">
<column jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container" >
<items jcr:primaryType="nt:unstructured">
<headerRow jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Header Row"
name="./headerRow" />
<columns jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/multifield"
class="full-width" fieldLabel="Columns">
<field jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fieldset"
acs-commons-nested="JSON_STORE" jcr:title="Column"
name="./compareColumns">
<layout jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
method="absolute" />
<items jcr:primaryType="nt:unstructured">
<columns jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<checkbox
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/checkbox"
fieldDescription="Checking will add a check icon"
name="./checkbox"
text="Add Checkbox"
value="true"/>
<description
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Description"
name="./description"/>
<path
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
fieldLabel="Path"
name="./linkPath"
rootPath="/content/fifth-third"/>
<pathtext
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Link Text"
name="./linkText"/>
</items>
</columns>
</items>
</field>
</columns>
</items>
</column>
</items>
</field>
</rows>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment