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