Renders an editable list of strings.
Properties include:
listTitle - (String) Specifies the label that Waveset places next to the ListEditor graphical representation.
pickListTitle - (String) Specifies the label to use on the picklist component.
valueMap - (Map) Specifies a map of display labels for the values in the list.
allowDuplicates - (Boolean) A value of true indicates that Waveset allows duplicates in the managed list.
allowTextEntry - (Boolean) A value of true indicates that Waveset displays a text entry box, along with an add button.
fixedWidth - (Boolean) A value of true indicates that the component should be of fixed width (same behavior as Multiselect component).
ordered - (Boolean) A value of true indicates that the order of values is important.
sorted - (Boolean) A value of true indicates that the values should be sorted in the pick list. If values are multivalued and not ordered, Waveset also sorts the value list.
pickValueMap - (List or Map) Specifies a map of display labels for the values in the pick list.
pickValues - (List) Specifies the available values in the picklist component. If null, the picklist is not shown.
height - (Integer) Specifiies preferred height.
width - (Integer) Specifies the preferred width. Can be used by the Container as a property of the table cell in which this item is rendered.
The following example shows a field that uses the ListEditor display class (Tabbed User Form):
<Field name=’accounts[Sim1].Group’> <Display class=’ListEditor’ action=’true’> <Property name=’listTitle’ value=’stuff’/> <Property name=’allowTextEntry’> <Boolean>true</Boolean> </Property> <Property name=’ordered’> <Boolean>true</Boolean> </Property> </Display> <Expansion> <ref>accounts[Sim1].Group</ref> </Expansion> </Field>
This code snippet creates a field where the customer can add groups to or remove them from a user.
This display class typically requires a List of Strings as input. To coerce a single String into a List of Strings:
<Expansion> <appendAll><ref>accounts[Sim1].Group</ref></appendAll> </Expansion>