Skip to content

Commit

Permalink
add dialog type hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 21, 2021
1 parent bf5cefa commit c2bb0b2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,27 @@
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="aemdesign/components/coral/datasources/tags"
variant="valuelist"
variant="tagidvalue"
path="/content/cq:tags/${(empty tenant.id and empty tenantId) ? 'aemdesign' : (empty tenant.id ? tenantId : tenant.id )}/component-dialog/sociallink/type"/>
</linksType>
<linksTypeHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./linksType@TypeHint"
value="String[]"/>

<linksContent
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Content"
name="./linksContent"
required="{Boolean}true"/>
<linksContentHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./linksContent@TypeHint"
value="String[]"/>

</items>
</field>
</fieldlinksmultifield>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,23 @@
variant="valuelist"
path="/content/cq:tags/${(empty tenant.id and empty tenantId) ? 'aemdesign' : (empty tenant.id ? tenantId : tenant.id )}/component-dialog/html/metadata/properties"/>
</pageMetaProperty>
<pageMetaPropertyHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./pageMetaProperty@TypeHint"
value="String[]"/>

<pageMetaPropertyContent
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="Content"
name="./pageMetaPropertyContent"
required="{Boolean}true"/>
<pageMetaPropertyContentHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./pageMetaPropertyContent@TypeHint"
value="String[]"/>
</items>
</field>
</fieldconfigmultifield>
Expand Down

0 comments on commit c2bb0b2

Please sign in to comment.