class sap.m.InputListItem

Control sample: sap.m.InputListItem
Visiblity: public
UX Guidelines: Input List Item
Implements:
Available since: N/A
Module: sap/m/InputListItem
Application Component: CA-UI5-TBL

List item should be used for a label and an input field.


Constructor

Constructor for a new InputListItem.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.m.InputListItem(sId?, mSettings?)
Param Type Default Value Description
sId? string

id for the new control, generated automatically if no id is given

mSettings? object

initial settings for the new control


Properties

Name Type Default Value Description
label string

Label of the list item

Visibility: public
labelTextDirection sap.ui.core.TextDirection Inherit

This property specifies the label text directionality with enumerated options. By default, the label inherits text direction from the DOM.

Since: 1.30.0.

Visibility: public

Borrowed Properties

Name Type Default Value Description
counter int

Defines the counter value of the list items.

Visibility: public
highlight string None

Defines the highlight state of the list items.

Valid values for the highlight property are values of the enumerations sap.ui.core.MessageType or sap.ui.core.IndicationColor.

Accessibility support is provided through the associated highlightText property. If the highlight property is set to a value of sap.ui.core.MessageType, the highlightText property does not need to be set because a default text is used. However, the default text can be overridden by setting the highlightText property. In all other cases the highlightText property must be set.

Since: 1.44.0.

Visibility: public
highlightText string empty string

Defines the semantics of the highlight property for accessibility purposes.

Since: 1.62.

Visibility: public
navigated boolean false

The navigated state of the list item.

If set to true, a navigation indicator is displayed at the end of the list item. Note: This property must be set for one list item only.

Since: 1.72.

Visibility: public
selected boolean false

Defines the selected state of the list items. Note: Binding the selected property in single selection modes may cause unwanted results if you have more than one selected items in your binding.

Visibility: public
type sap.m.ListType Inactive

Defines the visual indication and behavior of the list items, e.g. Active, Navigation, Detail.

Visibility: public
unread boolean false

Activates the unread indicator for the list item, if set to true. Note: This flag is ignored when the showUnread property of the parent is set to false.

Visibility: public
visible boolean true

Whether the control should be visible on the screen. If set to false, a placeholder is rendered instead of the real control.

Visibility: public

Aggregations

Default Aggregation: content

Name Cardinality Type Description
content (default) 0..n sap.ui.core.Control

Content controls can be added


Methods Overview

Method Description
addContent

Adds some content to the aggregation content.

bindContent

Binds aggregation content to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

destroyContent

Destroys all the content in the aggregation content.

sap.m.InputListItem.extend

Creates a new subclass of class sap.m.InputListItem with name 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.

getContent

Gets content of aggregation content.

Content controls can be added

getLabel

Gets current value of property label.

Label of the list item

getLabelTextDirection

Gets current value of property labelTextDirection.

This property specifies the label text directionality with enumerated options. By default, the label inherits text direction from the DOM.

Default value is Inherit.

sap.m.InputListItem.getMetadata

Returns a metadata object for class sap.m.InputListItem.

indexOfContent

Checks for the provided sap.ui.core.Control in the aggregation content. and returns its index if found or -1 otherwise.

insertContent

Inserts a content into the aggregation content.

removeAllContent

Removes all the controls from the aggregation content.

Additionally, it unregisters them from the hosting UIArea.

removeContent

Removes a content from the aggregation content.

setLabel

Sets a new value for property label.

Label of the list item

When called with a value of null or undefined, the default value of the property will be restored.

setLabelTextDirection

Sets a new value for property labelTextDirection.

This property specifies the label text directionality with enumerated options. By default, the label 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.

unbindContent

Unbinds aggregation content from model data.

addContent

Adds some content to the aggregation content.

Param Type DefaultValue Description
oContent sap.ui.core.Control

The content to add; if empty, nothing is inserted

bindContent

Binds aggregation content to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Param Type DefaultValue Description
oBindingInfo sap.ui.base.ManagedObject.AggregationBindingInfo

The binding information

destroyContent

Destroys all the content in the aggregation content.

sap.m.InputListItem.extend

Creates a new subclass of class sap.m.InputListItem with name 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.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getContent

Gets content of aggregation content.

Content controls can be added

getLabel

Gets current value of property label.

Label of the list item

getLabelTextDirection

Gets current value of property labelTextDirection.

This property specifies the label text directionality with enumerated options. By default, the label inherits text direction from the DOM.

Default value is Inherit.

sap.m.InputListItem.getMetadata

Returns a metadata object for class sap.m.InputListItem.

indexOfContent

Checks for the provided sap.ui.core.Control in the aggregation content. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oContent sap.ui.core.Control

The content whose index is looked for

insertContent

Inserts a content into the aggregation content.

Param Type DefaultValue Description
oContent sap.ui.core.Control

The content to insert; if empty, nothing is inserted

iIndex int

The 0-based index the content should be inserted at; for a negative value of iIndex, the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position

removeAllContent

Removes all the controls from the aggregation content.

Additionally, it unregisters them from the hosting UIArea.

removeContent

Removes a content from the aggregation content.

Param Type DefaultValue Description
vContent int string sap.ui.core.Control

The content to remove or its index or id

setLabel

Sets a new value for property label.

Label of the list item

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sLabel string

New value for property label

setLabelTextDirection

Sets a new value for property labelTextDirection.

This property specifies the label text directionality with enumerated options. By default, the label 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.

Param Type DefaultValue Description
sLabelTextDirection sap.ui.core.TextDirection Inherit

New value for property labelTextDirection

unbindContent

Unbinds aggregation content from model data.