Class sap.m.StandardListItemModule: sap/m/StandardListItem
sap.m.StandardListItem
is a list item providing the most common use cases, e.g. image, title and description.
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
- title : string
- description : string
- icon : sap.ui.core.URI
- iconInset : boolean (default: true)
- iconDensityAware : boolean (default: true)
- activeIcon : sap.ui.core.URI
- info : string
- infoState : sap.ui.core.ValueState (default: None)
- adaptTitleSize : boolean (default: true)
- titleTextDirection : sap.ui.core.TextDirection (default: Inherit)
- infoTextDirection : sap.ui.core.TextDirection (default: Inherit)
In addition, all settings applicable to the base type sap.m.ListItemBase 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.m.ListItemBase.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 |
activeIcon
. Defines the icon that is shown while the list item is pressed.
{sap.ui.core.URI} | Value of property activeIcon |
adaptTitleSize
. By default, the title size adapts to the available space and gets bigger if the description is empty. If you have list items with and without descriptions, this results in titles with different sizes. In this case, it can be better to switch the size adaption off by setting this property to false
.
Default value is true
.
- Since:
- 1.16.3
{boolean} | Value of property adaptTitleSize |
description
. Defines the additional information for the title. Note: This is only visible when the title
property is not empty.
{string} | Value of property description |
icon
. Defines the list item icon.
{sap.ui.core.URI} | Value of property icon |
iconDensityAware
. By default, one or more requests are sent to get the density perfect version of the icon if the given version of the icon doesn't exist on the server. Note: If bandwidth is a key factor for the application, set this value to false
.
Default value is true
.
{boolean} | Value of property iconDensityAware |
iconInset
. Defines the indentation of the icon. If set to false
, the icon will not be shown as embedded. Instead it will take the full height of the list item.
Default value is true
.
{boolean} | Value of property iconInset |
info
. Defines an additional information text.
{string} | Value of property info |
infoState
. Defines the state of the information text, e.g. Error
, Warning
, Success
.
Default value is None
.
{sap.ui.core.ValueState} | Value of property infoState |
infoTextDirection
. Defines the info
directionality with enumerated options. By default, the control inherits text direction from the DOM.
Default value is Inherit
.
- Since:
- 1.28.0
{sap.ui.core.TextDirection} | Value of property infoTextDirection |
title
. Defines the title of the list item.
{string} | Value of property title |
titleTextDirection
. Defines the title
text directionality with enumerated options. By default, the control inherits text direction from the DOM.
Default value is Inherit
.
- Since:
- 1.28.0
{sap.ui.core.TextDirection} | Value of property titleTextDirection |
activeIcon
. Defines the icon that is shown while the list item is pressed.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sActiveIcon | New value for property activeIcon |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
adaptTitleSize
. By default, the title size adapts to the available space and gets bigger if the description is empty. If you have list items with and without descriptions, this results in titles with different sizes. In this case, it can be better to switch the size adaption off by setting this property to false
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bAdaptTitleSize | New value for property adaptTitleSize |
- Since:
- 1.16.3
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
description
. Defines the additional information for the title. Note: This is only visible when the title
property is not empty.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sDescription | New value for property description |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
icon
. Defines the list item icon.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sIcon | New value for property icon |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
iconDensityAware
. By default, one or more requests are sent to get the density perfect version of the icon if the given version of the icon doesn't exist on the server. Note: If bandwidth is a key factor for the application, set this value to false
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bIconDensityAware | New value for property iconDensityAware |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
iconInset
. Defines the indentation of the icon. If set to false
, the icon will not be shown as embedded. Instead it will take the full height of the list item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bIconInset | New value for property iconInset |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
info
. Defines an additional information text.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sInfo | New value for property info |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
infoState
. Defines the state of the information text, e.g. Error
, Warning
, Success
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is None
.
{sap.ui.core.ValueState} | sInfoState | New value for property infoState |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
infoTextDirection
. Defines the info
directionality with enumerated options. By default, the control inherits text direction from the DOM.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Inherit
.
{sap.ui.core.TextDirection} | sInfoTextDirection | New value for property infoTextDirection |
- Since:
- 1.28.0
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
title
. Defines the title of the list item.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sTitle | New value for property title |
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |
titleTextDirection
. Defines the title
text directionality with enumerated options. By default, the control inherits text direction from the DOM.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Inherit
.
{sap.ui.core.TextDirection} | sTitleTextDirection | New value for property titleTextDirection |
- Since:
- 1.28.0
{sap.m.StandardListItem} | Reference to this in order to allow method chaining |