<!-- Classic UI -->
<__fieldName__TypeHint
jcr:primaryType="cq:Widget"
ignoreData="{Boolean}true"
name="./{{propertyName}}@TypeHint"
value="{{DesiredType}}"
xtype="hidden"/>
<!-- Touch UI -->
<__fieldName__TypeHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
ignoreData="true"
value="{{DesiredType}}"
name="./{{propertyName}}@TypeHint"/>
__fieldName__ , {{propertyName}} and {{DesiredType}} should be properly replaced.
A code snippet with true values can be found here.
Source: http://danielhalima.com/aem/2017/04/23/setting-the-type-of-a-property-in-a-component-dialog/
No comments:
Post a Comment
If you have any doubts or questions, please let us know.