-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Add support for defining attributes on basic components in the page builder.
Each attribute will have the following structure:
key: unique identifier
label: human-readable name (shown in sidebar)
type: "formula" | "input" | "image" | "constant"
value: default or assigned value
The attributes will show up in the customization sidebar for easy editing.
Details
Attributes can be configured by the package consumer (user).
type: formula → can be seeded to a component’s field, or left unseeded.
Users can define one attribute as a trigger, tied to an event (click, blur, input, etc.).
On trigger, a user-provided function is executed. This function receives the current attribute values and returns the computed result.
The computed result is then displayed inside the component.