In SAS Visual Investigator, you can use a groupNameField input for a drop-down list:
<sas-dropdown-list [groupNameField]="'group'" ...>
However, an issue occurs where the item does not render if you do not set the groupNameField on an item.
Here is an example:
[
{ value: "one", label: "One", group: "one" },
{ value: "two", label: "Two" }
In this scenario, the second item does not render in the drop-down list.
To work around this issue, ensure that you set the groupNameField on an item.
Here is an example:
[
{ value: "one", label: "One", group: "one" },
{ value: "two", label: "Two", group: "two" }