DynamicPickListRows Class
Contains a list of picklist items in a Lightning component on a Lightning page.
The following are constructors for DynamicPickListRows.
-
DynamicPickListRows(rows, containsAllRows)
Creates an instance of the
VisualEditor.DynamicPickListRowsclass using the specified parameters. -
Creates an instance of the
VisualEditor.DynamicPickListRowsclass using the specified parameter. -
Creates an instance of the
VisualEditor.DynamicPickListRowsclass. You can then add rows by using the class’saddRoworaddAllRowsmethods.
Creates an instance of the VisualEditor.DynamicPickListRows class using the specified parameters.
public DynamicPickListRows(List<VisualEditor.DataRow> rows, Boolean containsAllRows)
- rows: Type: List VisualEditor.DataRow List of picklist items.
- containsAllRows: Type: Boolean Indicates if all values of the picklist are included in a type-ahead search query (true) or only those values initially displayed when the list is clicked on (false). A picklist in a Lightning component can display only the first 200 values of a list. If containsAllRows is set to false, when a user does a type-ahead search to find values in the picklist, the search will only look at those first 200 values that were displayed, not the complete set of picklist values.
Creates an instance of the VisualEditor.DynamicPickListRows class using the specified parameter.
public DynamicPickListRows(List<VisualEditor.DataRow> rows)
- rows: Type: List VisualEditor.DataRow List of picklist rows.
Creates an instance of the VisualEditor.DynamicPickListRows class. You can then add rows by using the class’s addRow or addAllRows methods.
public DynamicPickListRows()
The following are methods for DynamicPickListRows.
-
Adds a list of picklist items to a dynamic picklist rendered in a Lightning component on a Lightning page.
-
Adds a single picklist item to a dynamic picklist rendered in a Lightning component on a Lightning page.
-
Makes a duplicate copy of the
VisualEditor.DynamicPickListRowsobject. -
Returns a Boolean value indicating whether all values of the picklist are included when a user does a type-ahead search query (true) or only those values initially displayed when the list is clicked on (false).
-
Returns a picklist element stored at the specified index.
-
Returns a list of picklist items.
-
setContainsAllRows(containsAllRows)
Sets the value indicating whether all values of the picklist are included when a user does a type-ahead search query (true) or only those values initially displayed when the list is clicked on (false).
-
Returns the size of the list of
VisualEditor.DynamicPickListRows. -
Sorts the list of
VisualEditor.DynamicPickListRows.
Adds a list of picklist items to a dynamic picklist rendered in a Lightning component on a Lightning page.
public void addAllRows(List<VisualEditor.DataRow> rows)
- rows: Type: List VisualEditor.DataRow List of picklist items.
Type: void
Adds a single picklist item to a dynamic picklist rendered in a Lightning component on a Lightning page.
public void addRow(VisualEditor.DataRow row)
- row: Type: VisualEditor.DataRow A single picklist item.
Type: void
Makes a duplicate copy of the VisualEditor.DynamicPickListRows object.
public Object clone()
Type: Object
Returns a Boolean value indicating whether all values of the picklist are included when a user does a type-ahead search query (true) or only those values initially displayed when the list is clicked on (false).
public Boolean containsAllRows()
Type: Boolean
A picklist in a Lightning component can display only the first 200 values of a list. If containsAllRows is set to false, when a user does a type-ahead search to find values in the picklist, the search will only look at those first 200 values that were displayed, not the complete set of picklist values.
Returns a picklist element stored at the specified index.
public VisualEditor.DataRow get(Integer i)
- i: Type: Integer The index.
Type: VisualEditor.DataRow
Returns a list of picklist items.
public List<VisualEditor.DataRow> getDataRows()
Type: List VisualEditor.DataRow
Sets the value indicating whether all values of the picklist are included when a user does a type-ahead search query (true) or only those values initially displayed when the list is clicked on (false).
public void setContainsAllRows(Boolean containsAllRows)
- containsAllRows: Type: Boolean Indicates if all values of the picklist are included in a type-ahead search query (true) or only those values initially displayed when the list is clicked on (false). A picklist in a Lightning component can display only the first 200 values of a list. If containsAllRows is set to false, when a user does a type-ahead search to find values in the picklist, the search will only look at those first 200 values that were displayed, not the complete set of picklist values.
Type: void
Returns the size of the list of VisualEditor.DynamicPickListRows.
public Integer size()
Type: Integer
Sorts the list of VisualEditor.DynamicPickListRows.
public void sort()
Type: void