Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
DataRow Class
Contains information about one item in a picklist used in a Lightning component on a Lightning page.
Namespace
DataRow Constructors
The following are constructors for DataRow.
DataRow(label, value, selected)
DataRow(label, value)
Signature
public DataRow(String label, Object value)
Parameters
- label: Type: String User-facing label for the picklist item.
- value: Type: Object The value of the picklist item.
DataRow Methods
The following are methods for DataRow.
compareTo(o)
Compares the current VisualEditor.DataRow object to the specified one. Returns an integer value that is
the result of the comparison.
Signature
public Integer compareTo(VisualEditor.DataRow o)
Parameters
- o: Type: VisualEditor.DataRow A single item in a picklist.
Return Value
Type: Integer
Returns one of the following values:
- Zero if the current package version is equal to the specified package version
- An integer value greater than zero if the current package version is greater than the specified package version
- An integer value less than zero if the current package version is less than the specified package version