I am looking for a way to add a custom data attribute that is rendered in the DOM.
I have created a custom data type for Email Addresses by overlaying /libs/settings/dam/cfm/models/formbuilderconfig.
However, I want to add a custom data-attribute inside the HTML for every instance of my custom data type, so that my validator can use that data-attribute as a selector.
You can refer to Content Fragment Core Component for reference.
CF Reference Docs: