Button

Generates

A standard HTML button

Unique Properties

  • Type

    • Default is button.

Tips & Notes

  • Use the standard events property to handle a click event
let options: BuilderOptions = {
  formDefinition: [],
  componentOptions: [
    {
      componentName: "Button",
      events: {
        onclick: (e: Event) => {
          alert(`Hello from ${e.target.id}`);
        },
      },
    },
  ],
};

Demo