Single Page Drag/Drop application to create AEM Dialogs.
npm i
npm run dev
- tabs (section)
- fieldset
- textfield
- textarea
- numberfield
- richtext
- datepicker
- hidden
- select
- checkbox
- switch
- buttongroup
- radio
- fileupload
- pathfield
- anchorbutton
- alert
- heading
sample
...
/* eslint-disable no-undef */
import constants from '../../constants';
const helloworld = {
name: 'HelloWorld',
tag: 'HW',
category: constants.fieldCategories.CUSTOM.name,
tagColor: constants.fieldCategories.CUSTOM.color,
description: 'Hello World Sample',
id: 'helloworld',
fields: [
FIELD_DEFINITION_ID,
{
id: 'hello',
label: 'Hellotext',
description: '',
type: 'String',
defaultValue: 'Hello',
required: true,
},
{
id: 'world',
label: 'Worldtext',
description: '',
type: 'String',
defaultValue: 'World',
required: true,
},
],
previewOutput: `<div class="helloworld">
<span class="helloworld_hello">{hello}</span>
<span class="helloworld_world">{world}</span>
</div>`,
xmlOutput: `<{id}
jcr:primaryType="nt:unstructured"
sling:resourceType="/apps/components/dialogfields/helloworld"
hello="{hello}"
world="{world}"
/>`,
};
export default helloworld;
default Field definitions to use in fields []
- FIELD_DEFINITION_ID
- FIELD_DEFINITION_LABEL
- FIELD_DEFINITION_REQUIRED
- FIELD_DEFINITION_DESCRIPTION
Example:
{
id: 'hello',
label: 'Hellotext',
description: '',
type: 'String',
defaultValue: 'Hello',
required: true,
},
Format | Filename | Info |
---|---|---|
XML | _cq_dialog.xml | to directly use in AEM projects |
JSON | dialog.json | For saving on disk an future load feature in tools Library |
AEM Component Generator JSON | dialog | to use with AEM Component Generator |
Please checkout our contributing guideline.