The DropDown UDR
is used to add a dropdown element on a page where a user can select an item out of many.
The following fields are included in the DropDown UDR
:
Field | Description |
---|---|
attributes (map<string,string>) | This field may contain extra attributes to be added. |
cssClasses (list<string>) | This field may contain a list of extra values added to class attribute. This is typically used to style the component. Please read more on Bootstrap. |
disabled (boolean) | This field may contain a boolean if the component should be disabled or enabled. |
id (string) | This field may contain the id of the component |
items (map<string,string>) | This field must contain a map of key value pairs. The key will be present in UI and the value will be set on the Value attribute. Meaning the value will be sent if the dropbox is submitted in a Form UDR. To get the items in the same order as added the map needs to be created with mapCreateOrdered function. |
label (string) | This field may contain the label for the dropdown. |
labelCssClasses (list<string>) | This field may contain a list of extra values added to class attribute of the label. This is typically used to style the component. Please read more on Bootstrap. |
name (string) | This field may contain the name of the component |
selected (string) | This field may contain a string matching a value in the Items map. If a match is found this Item will be selected in the dropdown. |
0 Comments