DropDown Widget for Wakanda
The DropDown widget allows you to display a drop down menu,
- to select the value of an item from a datasource
- or to assign an entity to a relatedEntity attribute
- or to select the current element of a datasource
This widget has the following properties:
- selectItem: If true, the current element of the items datasource will be synced with the selected item of the widget
- value: The value of the curretly selected item, could be bound to an scalar attribute to save the value, or boud to a relatedEntity attribute to set the entity pointed by this attribute
- items: the datasource or the dataclass containing the items to show in the menu ** Attribute value: The attribute that describe the value that ill be copied in the value property when you select an item in the list ** Attribute label: The label displayed for each item
- limit: the maximum number of items to show in the drop down menu
- allowEmpty: add an empty row as the first item in the list
- change
- errorNotFound: when we try to set the value of the widget to an item that doesn't exists or that is beyond the limit
You can install a custom widget by using the Add-ons Extension. For more information, refer to the Installing a Custom Widget manual.
For more information about creating a custom widget, refer to the Widgets v2 Creating a Widget manual.