We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a custom attribute with the name of data-validatortitle will be stored as datavalidatortitle How can we add data- attributes?
options = { typeUserAttrs: { '*':{ 'data-validatortitle': { label: 'Validatortitle', value: '' } } } };
Will give an attribute with the name of "datavalidatortitle" so the - is lost.
One option would be to add a title attribute:
options = { typeUserAttrs: { text:{ title: { label: 'Validatortitle', value: '' } } } };
But title attribute is not renderd on checkbox and radio
The text was updated successfully, but these errors were encountered:
What version are you using? Either data-hypen-case or dataCamelCase will work fine for defining a custom attribute.
typeUserAttrs: { '*': { 'dataMyData': { label: 'Data camelCase', value: '', }, 'data-my-data2': { label: 'Data Hyphen', value: '', },
It will be saved in camelCase
"dataMyData": "abc", "dataMyData2": "123",
Sorry, something went wrong.
No branches or pull requests
Adding a custom attribute with the name of data-validatortitle will be stored as datavalidatortitle
How can we add data- attributes?
Will give an attribute with the name of "datavalidatortitle" so the - is lost.
One option would be to add a title attribute:
But title attribute is not renderd on checkbox and radio
The text was updated successfully, but these errors were encountered: