exp_text
trait adds a text box to the sidebar of the visual builder, allowing for easy content editing.
To render exp_text
, pass the below object to the trait configuration.
exp_text
in the traitConfig array of the component’s initial value, a text box will be rendered in the sidebar of the UI builder. The displayName
will serve as the label for that text box.
exp_textArea
trait adds a text Area to the sidebar of the visual builder.
traitConfig Object:
exp_checkbox
trait adds a Checkbox to the sidebar of the visual builder.
traitConfig Object:
exp_colorPicker
trait adds a Color Picker to the sidebar of the visual builder.
exp_dropDown
trait adds a Drop Down to the sidebar of the visual builder.
options
array is used to populate the dropdown, where each object in the array represents an option. The name
property specifies the display name for the option, while the value
property specifies the actual value of the option.
The displayName
will be used as the placeholder for the dropdown, prefixed with Select
.
exp_dataSourceDropDown
is used to render a dropdown menu from which you can select the data source for your component. There are two types of data sources:
internalName
or displayName
as they are fixed. The internalName
is dataSource
, which is a reserved keyword and cannot be used for other traits’ internalName
.
exp_contentModalPopUp
trait is used when data is sourced from Experro’s content library. It displays a selection list in a popup, showing records from Experro’s content library for that component.
modelInternalName
is the modal internal name of the content model. which so ever content models internal name is passed from here that content modals records will shown in the popup
The modelInternalName
is the modal internal name of the content model. Whichever content model’s internal name is passed here, that content model’s records will be shown in the popup.