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

  1. Add a ‘Text’ field
  2. Open its settings