Last active
December 31, 2023 22:52
-
-
Save poonia/880714b08fb2d8c6142f3afca8e9a27b to your computer and use it in GitHub Desktop.
AEM Author Dialog Field Types and Examples
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
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
<sortingEnabled | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/checkbox" | |
text="Enable Sorting?" | |
value="true" | |
name="./sortingEnabled"/> |
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
<backgroundColor jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/coral/foundation/form/colorfield" | |
showDefaultColors="{Boolean}false" | |
text="Background Color" | |
fieldLabel="Background Color" | |
name="./backgroundColor" | |
showProperties="{Boolean}false"> | |
<items jcr:primaryType="nt:unstructured"> | |
<white jcr:primaryType="nt:unstructured" value="#FFFFFF"/> | |
<black jcr:primaryType="nt:unstructured" value="#000000"/> | |
<blue jcr:primaryType="nt:unstructured" value="#D8F1FF"/> | |
<green jcr:primaryType="nt:unstructured" value="#AECDC7"/> | |
</items> | |
</backgroundColor> |
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
<fileupload | |
jcr:primaryType="nt:unstructured" | |
jcr:title="Files" | |
sling:resourceType="granite/ui/components/foundation/form/fieldset"> | |
<items jcr:primaryType="nt:unstructured"> | |
<file | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/coral/foundation/form/fileupload" | |
autoStart="{Boolean}true" | |
cq-msm-lockable="/file" | |
fieldLabel="Upload Image" | |
mimeTypes="[image/png,image/jpeg,application/pdf]" | |
multiple="{Boolean}false" | |
name="./file" | |
sizeLimit="100000000" | |
text="Upload file" | |
uploadUrl="/content/dam/someurl" | |
uploadUrlBuilder=""/> | |
</items> | |
</fileupload> |
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
<columnWidth | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/numberfield" | |
fieldLabel="Column width in Grid" | |
defaultValue="4" | |
min="1" | |
max="12" | |
step="1" | |
name="./columnWidth"/> |
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
<linkPath | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/pathbrowser" | |
rootPath="/content/" | |
emptyText="Path to target page" | |
fieldLabel="Link Page Path" | |
name="./linkPath"/> |
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
<country | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/select" | |
fieldLabel="Select Country" | |
name="./country"> | |
<items jcr:primaryType="nt:unstructured"> | |
<usa jcr:primaryType="nt:unstructured" | |
text="United States" | |
value="usa"/> | |
<canada jcr:primaryType="nt:unstructured" | |
text="Canada" | |
value="canada"/> | |
<india jcr:primaryType="nt:unstructured" | |
text="India" | |
value="india"/> | |
</items> | |
</country> |
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
<description | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/coral/foundation/form/textfield" | |
text="Description Text"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment