Skip to content

Instantly share code, notes, and snippets.

View fredrick-dominy's full-sized avatar
⚙️
Drive forward, in-steps, with purpose.

Fredrick M Dominy fredrick-dominy

⚙️
Drive forward, in-steps, with purpose.
View GitHub Profile
<!-- 6.3 Coral Multifield -->
<sly data-sly-use.multi="${'com.<client>.core.helpers.ChildNodeHelper' @ nodeName='fieldItems'}"></sly>
<sly data-sly-list.child="${multi.getChild.listChildren}">
<p>${ child.valueMap['text']}</p>
</sly>
<!-- 6.3 Coral Multifield -->
@fredrick-dominy
fredrick-dominy / pathfield 6.3
Last active February 3, 2018 17:08
pathfield 6.3
<my-path
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
emptyText="e.g. /path/to/content"
filter="hierarchyNotFile"
forceSelection="{Boolean}false"
multiple="{Boolean}false"
name="./myPath"
required="{Boolean}true"
rootPath="/content"/>
@fredrick-dominy
fredrick-dominy / select 6.3
Last active February 3, 2018 17:08
select 6.3
<selectorName
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/select"
granite:id="selector_name_select"
deleteHint="{Boolean}true"
emptyOption="{Boolean}true"
emptyText="Select an author."
multiple="{Boolean}false"
ordered="{Boolean}true"
fieldDescription="Select a thing"
@fredrick-dominy
fredrick-dominy / datepicker 6.3
Last active June 7, 2018 20:25
datepicker 6.3
<datepicker
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
granite:id="datepicker_granite_id"
displayTimezoneMessage="{Boolean}true"
emptyText="Example empty text"
fieldDescription="Optional."
fieldLabel="Date Picker label"
name="./checkbox"
required="{Boolean}true"
<text-area
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
emptyText="e.g. Add descriptive content"
fieldDescription="Special Instructions:"
fieldLabel="Descriptive Label"
maxlength="300"
name="./myTextarea"
required="{Boolean}false"/>
@fredrick-dominy
fredrick-dominy / tab 6.3
Created October 27, 2017 00:15
tab 6.3
<tab1
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"
jcr:title="Letter"
margin="{Boolean}true"
trackingElement="letter">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
@fredrick-dominy
fredrick-dominy / call-to-action 6.3
Last active October 27, 2017 00:13
call-to-action 6.3
<label
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
granite:id="label_text"
emptyText="e.g. Link label"
fieldDescription="Required. Maximum length of 40 characters."
fieldLabel="Label"
maxlength="40"
name="./cta/label"
required="{Boolean}true"/>
@fredrick-dominy
fredrick-dominy / fileupload 6.3
Last active May 7, 2018 23:01
fileupload 6.3
<text
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/text"
text="Description of image..."/>
<file
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
class="cq-droptarget"
fieldLabel="Image Asset"
fieldDescription="Drag and drop an image asset from the asset finder here. If asset is shown, press 'Clear' to remove the reference."
@fredrick-dominy
fredrick-dominy / textarea-6.3
Last active October 24, 2017 19:56
textarea-6.3
<textarea
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
granite:id="texfield_textarea"
emptyText="e.g. Text Area Content"
fieldDescription="Required. Maximum length of 300 characters."
fieldLabel="Text Area"
maxlength="300"
name="./textarea"
required="{Boolean}true"/>
@fredrick-dominy
fredrick-dominy / textfield-6.3
Last active February 1, 2018 22:27
textfield-6.3
<my-text-field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
emptyText="e.g. Textfield Content"
fieldDescription="Required. Enter text in Uppercase. Maximum length of 100 characters."
fieldLabel="Text Field"
maxlength="100"
name="./myTextField"
required="{Boolean}true"/>