Class sap.ui.core.ListItemModule: sap/ui/core/ListItem
An item that is used in lists or list-similar controls such as DropdownBox, for example. The element foresees the usage of additional texts displayed in a second column.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- icon : string
- additionalText : string
In addition, all settings applicable to the base type sap.ui.core.Item can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Item.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
additionalText
. Some additional text of type string, optionally to be displayed along with this item.
{string} | Value of property additionalText |
icon
. The icon belonging to this list item instance. This can be an URI to an image or an icon font URI.
{string} | Value of property icon |
additionalText
. Some additional text of type string, optionally to be displayed along with this item.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sAdditionalText | New value for property additionalText |
{sap.ui.core.ListItem} | Reference to this in order to allow method chaining |
icon
. The icon belonging to this list item instance. This can be an URI to an image or an icon font URI.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sIcon | New value for property icon |
{sap.ui.core.ListItem} | Reference to this in order to allow method chaining |