Skip to content

[Feature]:Attribute-based Customization for Basic Components #114

@SsagarikaR

Description

@SsagarikaR

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions