How can I add a custom attribute to the dialog element?
How can I add a custom attribute to the dialog element? We typically use attributes like granite:class, Id, and title. Similarly, I believe we can add custom attributes as well. This approach works for RTE.
<textfieldsgroup
granite:class="cq-RichText-FixedColumn-column"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Please provide title text."
fieldLabel="Title"
data-custom-attr1="myData"
data-custom-attr="100"
name="./title"/>
<description
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"
fieldDescription="Please enter description."
fieldLabel="Description"
name="./description"
useFixedInlineToolbar="{Boolean}true">
</description>
</items>
</textfieldsgroup>
I attempted to implement the same for an input text field within a text fields group, but the attribute (




