HTML Attributes
Dynamic HTML Properties
An important concept is that htmlAttributes can contain any valid HTML property. If used, it will be generated automatically in the Property Panel
let options: BuilderOptions = {
componentOptions: [
{
componentName: "Text",
htmlAttributes: {
required: true,
placeholder: "placeholder",
class: "",
maxlength: null,
spellcheck: true,
},
},
],
};
Demo
- Add a ‘Text’ field
- Open its settings