Use another behavior
Add some template data fields
It does not support raw data, but a gen
function which returns the new data fields.
The gen
function executes once during component instance creation.
Apply a classic definition object
Set the export value when the component is being selected
Add extra this fields type
Implement a trait behavior
Execute a function while component instance creation
A BuilderContext
is provided to tweak the component creation progress.
The return value is used as the "export" value of the behavior.
Add a lifetime callback
Add some public methods
The public method can be used as an event handler, and can be visited in component instance.
Add a data observer
Optional
once: booleanSet the component options
If called multiple times, only the latest call is valid.
Add a page-lifetime callback
Add a single property
The property name should be different from other properties.
Finish the component definition process
Add a relation
Add some template data fields
The data should be JSON-compatible, and will be cloned during component creation.
A direct way to create a component