Custom Widgets Form
Properties
const buttonTextForm = {
type: "text",
propName: "buttonText",
label: `Button's text`,
value: "This is a simple text input",
};Conditions management
const triggerEventClick = {
type: "selectelement",
label: "Select the element that will trigger the Custom Widget on click",
propName: `triggerElementClick`,
value: "body",
condition: (DATA) => DATA.triggerType === "click",
};
// or using destructuring
const triggerEventClick = {
type: "selectelement",
label: "Select the element that will trigger the Custom Widget on click",
propName: `triggerElementClick`,
value: "body",
condition: ({ triggerType }) => triggerType === "click",
};List of propName fields and their specificities
areainput

checkbox

codeeditor
colorpicker

datepicker

datetimetimezonepicker
group

replicable

hidden
inlinenotification

number

paragraph
radio

radioImage

searchselect

select

selectelement

slider

switch

textarea

text

url

wysiwyg

Last updated
Was this helpful?

