class sap.m.FeedListItem

Control sample: sap.m.FeedListItem
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/FeedListItem
Application Component: CA-UI5-SC

The control provides a set of properties for text, sender information, time stamp. Beginning with release 1.23 the new feature expand / collapse was introduced, which uses the property maxCharacters. Beginning with release 1.44, sap.m.FormattedText was introduced which allows html formatted text to be displayed


Constructor

Constructor for a new FeedListItem.

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.FeedListItem(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
activeIcon sap.ui.core.URI

Icon displayed when the list item is active.

Visibility: public
convertLinksToAnchorTags sap.m.LinkConversion None

Determines whether strings that appear to be links will be converted to HTML anchor tags, and what are the criteria for recognizing them.

Since: 1.46.1.

Visibility: public
convertedLinksDefaultTarget string _blank

Determines the target attribute of the generated HTML anchor tags. Note: Applicable only if ConvertLinksToAnchorTags property is used with a value other than sap.m.LinkConversion.None. Options are the standard values for the target attribute of the HTML anchor tag: _self, _top, _blank, _parent, _search.

Since: 1.46.1.

Visibility: public
icon sap.ui.core.URI

Icon to be displayed as graphical element within the FeedListItem. This can be an image or an icon from the icon font. If no icon is provided, a default person-placeholder icon is displayed. Icon is only shown if showIcon = true.

Visibility: public
iconActive boolean true

If true, icon is a link, which will fire 'iconPress' events. If false, icon is normal image

Visibility: public
iconDensityAware boolean true

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is the key for the application, set this value to false.

Deprecated as of version 1.88. Image is replaced by avatar.

Visibility: public
iconDisplayShape sap.m.AvatarShape Circle

Defines the shape of the icon.

Since: 1.88.

Visibility: public
iconInitials string empty string

Defines the initials of the icon.

Since: 1.88.

Visibility: public
iconSize sap.m.AvatarSize S

Defines the size of the icon.

Since: 1.88.

Visibility: public
info string

The Info text.

Visibility: public
lessLabel string

Customizable text for the "LESS" link at the end of the feed list item.
Clicking the "LESS" link collapses the item, hiding the text that exceeds the allowed maximum number of characters.

Since: 1.60.

Visibility: public
maxCharacters int

The expand and collapse feature is set by default and uses 300 characters on mobile devices and 500 characters on desktops as limits. Based on these values, the text of the FeedListItem is collapsed once text reaches these limits. In this case, only the specified number of characters is displayed. By clicking on the text link More, the entire text can be displayed. The text link Less collapses the text. The application is able to set the value to its needs.

Visibility: public
moreLabel string

Customizable text for the "MORE" link at the end of the feed list item.
When the maximum number of characters defined by the maxCharacters property is exceeded and the text of the feed list item is collapsed, the "MORE" link can be used to expand the feed list item and show the rest of the text.

Since: 1.60.

Visibility: public
sender string

Sender of the chunk

Visibility: public
senderActive boolean true

If true, sender string is a link, which will fire 'senderPress' events. If false, sender is normal text.

Visibility: public
showIcon boolean true

If set to "true" (default), icons will be displayed, if set to false icons are hidden

Visibility: public
text string

The FeedListItem text. It supports html formatted tags as described in the documentation of sap.m.FormattedText

Visibility: public
timestamp string

This chunks timestamp

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: actions

Name Cardinality Type Description
_actionButton 0..1 sap.m.Button

Hidden aggregation that displays the action button.

_actionSheet 0..1 sap.m.ActionSheet

Hidden aggregation that contains the actions.

_avatar 0..1 sap.m.Avatar

Defines the inner avatar control.

_text 0..1 sap.m.FormattedText

Hidden aggregation which contains the text value

actions (default) 0..n sap.m.FeedListItemAction

Contains elements that are displayed in the action sheet.

Since: 1.52.0.


Events Overview

Event Description
iconPress

Event is fired when the icon is pressed.

senderPress

Event is fired when name of the sender is pressed.

iconPress

Event is fired when the icon is pressed.

Param Type Description
oControlEvent sap.ui.base.Event
getSource sap.ui.base.EventProvider
getParameters object
domRef string

Dom reference of the feed item's icon to be used for positioning.

getDomRef function

Function to retrieve the DOM reference for the iconPress event. The function returns the DOM element of the icon or null

senderPress

Event is fired when name of the sender is pressed.

Param Type Description
oControlEvent sap.ui.base.Event
getSource sap.ui.base.EventProvider
getParameters object
domRef string

Dom reference of the feed item's sender string to be used for positioning.

getDomRef function

Function to retrieve the DOM reference for the senderPress event. The function returns the DOM element of the sender link or null


Methods Overview

Method Description
addAction

Adds some action to the aggregation actions.

attachIconPress

Attaches event handler fnFunction to the iconPress event of this sap.m.FeedListItem.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.FeedListItem itself.

Event is fired when the icon is pressed.

attachSenderPress

Attaches event handler fnFunction to the senderPress event of this sap.m.FeedListItem.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.FeedListItem itself.

Event is fired when name of the sender is pressed.

destroyActions

Destroys all the actions in the aggregation actions.

detachIconPress

Detaches event handler fnFunction from the iconPress event of this sap.m.FeedListItem.

The passed function and listener object must match the ones used for event registration.

detachSenderPress

Detaches event handler fnFunction from the senderPress event of this sap.m.FeedListItem.

The passed function and listener object must match the ones used for event registration.

sap.m.FeedListItem.extend

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

fireIconPress

Fires event iconPress to attached listeners.

fireSenderPress

Fires event senderPress to attached listeners.

getActions

Gets content of aggregation actions.

Contains elements that are displayed in the action sheet.

getActiveIcon

Gets current value of property activeIcon.

Icon displayed when the list item is active.

getConvertedLinksDefaultTarget

Gets current value of property convertedLinksDefaultTarget.

Determines the target attribute of the generated HTML anchor tags. Note: Applicable only if ConvertLinksToAnchorTags property is used with a value other than sap.m.LinkConversion.None. Options are the standard values for the target attribute of the HTML anchor tag: _self, _top, _blank, _parent, _search.

Default value is "_blank".

getConvertLinksToAnchorTags

Gets current value of property convertLinksToAnchorTags.

Determines whether strings that appear to be links will be converted to HTML anchor tags, and what are the criteria for recognizing them.

Default value is None.

getIcon

Gets current value of property icon.

Icon to be displayed as graphical element within the FeedListItem. This can be an image or an icon from the icon font. If no icon is provided, a default person-placeholder icon is displayed. Icon is only shown if showIcon = true.

getIconActive

Gets current value of property iconActive.

If true, icon is a link, which will fire 'iconPress' events. If false, icon is normal image

Default value is true.

getIconDensityAware

Gets current value of property iconDensityAware.

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is the key for the application, set this value to false.

Deprecated as of version 1.88. Image is replaced by avatar.

Default value is true.

getIconDisplayShape

Gets current value of property iconDisplayShape.

Defines the shape of the icon.

Default value is Circle.

getIconInitials

Gets current value of property iconInitials.

Defines the initials of the icon.

Default value is empty string.

getIconSize

Gets current value of property iconSize.

Defines the size of the icon.

Default value is S.

getInfo

Gets current value of property info.

The Info text.

getLessLabel

Gets current value of property lessLabel.

Customizable text for the "LESS" link at the end of the feed list item.
Clicking the "LESS" link collapses the item, hiding the text that exceeds the allowed maximum number of characters.

getMaxCharacters

Gets current value of property maxCharacters.

The expand and collapse feature is set by default and uses 300 characters on mobile devices and 500 characters on desktops as limits. Based on these values, the text of the FeedListItem is collapsed once text reaches these limits. In this case, only the specified number of characters is displayed. By clicking on the text link More, the entire text can be displayed. The text link Less collapses the text. The application is able to set the value to its needs.

sap.m.FeedListItem.getMetadata

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

getMoreLabel

Gets current value of property moreLabel.

Customizable text for the "MORE" link at the end of the feed list item.
When the maximum number of characters defined by the maxCharacters property is exceeded and the text of the feed list item is collapsed, the "MORE" link can be used to expand the feed list item and show the rest of the text.

getSender

Gets current value of property sender.

Sender of the chunk

getSenderActive

Gets current value of property senderActive.

If true, sender string is a link, which will fire 'senderPress' events. If false, sender is normal text.

Default value is true.

getShowIcon

Gets current value of property showIcon.

If set to "true" (default), icons will be displayed, if set to false icons are hidden

Default value is true.

getText

Gets current value of property text.

The FeedListItem text. It supports html formatted tags as described in the documentation of sap.m.FormattedText

getTimestamp

Gets current value of property timestamp.

This chunks timestamp

indexOfAction

Checks for the provided sap.m.FeedListItemAction in the aggregation actions. and returns its index if found or -1 otherwise.

insertAction

Inserts a action into the aggregation actions.

removeAction

Removes a action from the aggregation actions.

removeAllActions

Removes all the controls from the aggregation actions.

Additionally, it unregisters them from the hosting UIArea.

setActiveIcon

Sets a new value for property activeIcon.

Icon displayed when the list item is active.

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

setConvertedLinksDefaultTarget

Sets a new value for property convertedLinksDefaultTarget.

Determines the target attribute of the generated HTML anchor tags. Note: Applicable only if ConvertLinksToAnchorTags property is used with a value other than sap.m.LinkConversion.None. Options are the standard values for the target attribute of the HTML anchor tag: _self, _top, _blank, _parent, _search.

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

Default value is "_blank".

setConvertLinksToAnchorTags

Sets a new value for property convertLinksToAnchorTags.

Determines whether strings that appear to be links will be converted to HTML anchor tags, and what are the criteria for recognizing them.

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

Default value is None.

setIcon

Sets a new value for property icon.

Icon to be displayed as graphical element within the FeedListItem. This can be an image or an icon from the icon font. If no icon is provided, a default person-placeholder icon is displayed. Icon is only shown if showIcon = true.

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

setIconActive

Sets a new value for property iconActive.

If true, icon is a link, which will fire 'iconPress' events. If false, icon is normal image

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

Default value is true.

setIconDensityAware

Sets a new value for property iconDensityAware.

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is the key for the application, set this value to false.

Deprecated as of version 1.88. Image is replaced by avatar.

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

Default value is true.

setIconDisplayShape

Sets a new value for property iconDisplayShape.

Defines the shape of the icon.

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

Default value is Circle.

setIconInitials

Sets a new value for property iconInitials.

Defines the initials of the icon.

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

Default value is empty string.

setIconSize

Sets a new value for property iconSize.

Defines the size of the icon.

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

Default value is S.

setInfo

Sets a new value for property info.

The Info text.

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

setLessLabel

Sets a new value for property lessLabel.

Customizable text for the "LESS" link at the end of the feed list item.
Clicking the "LESS" link collapses the item, hiding the text that exceeds the allowed maximum number of characters.

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

setMaxCharacters

Sets a new value for property maxCharacters.

The expand and collapse feature is set by default and uses 300 characters on mobile devices and 500 characters on desktops as limits. Based on these values, the text of the FeedListItem is collapsed once text reaches these limits. In this case, only the specified number of characters is displayed. By clicking on the text link More, the entire text can be displayed. The text link Less collapses the text. The application is able to set the value to its needs.

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

setMoreLabel

Sets a new value for property moreLabel.

Customizable text for the "MORE" link at the end of the feed list item.
When the maximum number of characters defined by the maxCharacters property is exceeded and the text of the feed list item is collapsed, the "MORE" link can be used to expand the feed list item and show the rest of the text.

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

setSender

Sets a new value for property sender.

Sender of the chunk

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

setSenderActive

Sets a new value for property senderActive.

If true, sender string is a link, which will fire 'senderPress' events. If false, sender is normal text.

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

Default value is true.

setShowIcon

Sets a new value for property showIcon.

If set to "true" (default), icons will be displayed, if set to false icons are hidden

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

Default value is true.

setText

Sets a new value for property text.

The FeedListItem text. It supports html formatted tags as described in the documentation of sap.m.FormattedText

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

setTimestamp

Sets a new value for property timestamp.

This chunks timestamp

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

setType

Redefinition of sap.m.ListItemBase.setType: type = "sap.m.ListType.Navigation" behaves like type = "sap.m.ListType.Active" for a FeedListItem

addAction

Adds some action to the aggregation actions.

Param Type DefaultValue Description
oAction sap.m.FeedListItemAction

The action to add; if empty, nothing is inserted

attachIconPress

Attaches event handler fnFunction to the iconPress event of this sap.m.FeedListItem.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.FeedListItem itself.

Event is fired when the icon is pressed.

Param Type DefaultValue Description
oData object

An application-specific payload object that will be passed to the event handler along with the event object when firing the event

fnFunction function(sap.ui.base.Event) : void

The function to be called when the event occurs

oListener object

Context object to call the event handler with. Defaults to this sap.m.FeedListItem itself

attachSenderPress

Attaches event handler fnFunction to the senderPress event of this sap.m.FeedListItem.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.m.FeedListItem itself.

Event is fired when name of the sender is pressed.

Param Type DefaultValue Description
oData object

An application-specific payload object that will be passed to the event handler along with the event object when firing the event

fnFunction function(sap.ui.base.Event) : void

The function to be called when the event occurs

oListener object

Context object to call the event handler with. Defaults to this sap.m.FeedListItem itself

destroyActions

Destroys all the actions in the aggregation actions.

detachIconPress

Detaches event handler fnFunction from the iconPress event of this sap.m.FeedListItem.

The passed function and listener object must match the ones used for event registration.

Param Type DefaultValue Description
fnFunction function(sap.ui.base.Event) : void

The function to be called, when the event occurs

oListener object

Context object on which the given function had to be called

detachSenderPress

Detaches event handler fnFunction from the senderPress event of this sap.m.FeedListItem.

The passed function and listener object must match the ones used for event registration.

Param Type DefaultValue Description
fnFunction function(sap.ui.base.Event) : void

The function to be called, when the event occurs

oListener object

Context object on which the given function had to be called

sap.m.FeedListItem.extend

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

fireIconPress

Fires event iconPress to attached listeners.

Param Type DefaultValue Description
mParameters object

Parameters to pass along with the event

domRef string

Dom reference of the feed item's icon to be used for positioning.

getDomRef function

Function to retrieve the DOM reference for the iconPress event. The function returns the DOM element of the icon or null

fireSenderPress

Fires event senderPress to attached listeners.

Param Type DefaultValue Description
mParameters object

Parameters to pass along with the event

domRef string

Dom reference of the feed item's sender string to be used for positioning.

getDomRef function

Function to retrieve the DOM reference for the senderPress event. The function returns the DOM element of the sender link or null

getActions

Gets content of aggregation actions.

Contains elements that are displayed in the action sheet.

getActiveIcon

Gets current value of property activeIcon.

Icon displayed when the list item is active.

getConvertedLinksDefaultTarget

Gets current value of property convertedLinksDefaultTarget.

Determines the target attribute of the generated HTML anchor tags. Note: Applicable only if ConvertLinksToAnchorTags property is used with a value other than sap.m.LinkConversion.None. Options are the standard values for the target attribute of the HTML anchor tag: _self, _top, _blank, _parent, _search.

Default value is "_blank".

getConvertLinksToAnchorTags

Gets current value of property convertLinksToAnchorTags.

Determines whether strings that appear to be links will be converted to HTML anchor tags, and what are the criteria for recognizing them.

Default value is None.

getIcon

Gets current value of property icon.

Icon to be displayed as graphical element within the FeedListItem. This can be an image or an icon from the icon font. If no icon is provided, a default person-placeholder icon is displayed. Icon is only shown if showIcon = true.

getIconActive

Gets current value of property iconActive.

If true, icon is a link, which will fire 'iconPress' events. If false, icon is normal image

Default value is true.

getIconDensityAware

Gets current value of property iconDensityAware.

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is the key for the application, set this value to false.

Deprecated as of version 1.88. Image is replaced by avatar.

Default value is true.

getIconDisplayShape

Gets current value of property iconDisplayShape.

Defines the shape of the icon.

Default value is Circle.

getIconInitials

Gets current value of property iconInitials.

Defines the initials of the icon.

Default value is empty string.

getIconSize

Gets current value of property iconSize.

Defines the size of the icon.

Default value is S.

getInfo

Gets current value of property info.

The Info text.

getLessLabel

Gets current value of property lessLabel.

Customizable text for the "LESS" link at the end of the feed list item.
Clicking the "LESS" link collapses the item, hiding the text that exceeds the allowed maximum number of characters.

getMaxCharacters

Gets current value of property maxCharacters.

The expand and collapse feature is set by default and uses 300 characters on mobile devices and 500 characters on desktops as limits. Based on these values, the text of the FeedListItem is collapsed once text reaches these limits. In this case, only the specified number of characters is displayed. By clicking on the text link More, the entire text can be displayed. The text link Less collapses the text. The application is able to set the value to its needs.

sap.m.FeedListItem.getMetadata

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

getMoreLabel

Gets current value of property moreLabel.

Customizable text for the "MORE" link at the end of the feed list item.
When the maximum number of characters defined by the maxCharacters property is exceeded and the text of the feed list item is collapsed, the "MORE" link can be used to expand the feed list item and show the rest of the text.

getSender

Gets current value of property sender.

Sender of the chunk

getSenderActive

Gets current value of property senderActive.

If true, sender string is a link, which will fire 'senderPress' events. If false, sender is normal text.

Default value is true.

getShowIcon

Gets current value of property showIcon.

If set to "true" (default), icons will be displayed, if set to false icons are hidden

Default value is true.

getText

Gets current value of property text.

The FeedListItem text. It supports html formatted tags as described in the documentation of sap.m.FormattedText

getTimestamp

Gets current value of property timestamp.

This chunks timestamp

indexOfAction

Checks for the provided sap.m.FeedListItemAction in the aggregation actions. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oAction sap.m.FeedListItemAction

The action whose index is looked for

insertAction

Inserts a action into the aggregation actions.

Param Type DefaultValue Description
oAction sap.m.FeedListItemAction

The action to insert; if empty, nothing is inserted

iIndex int

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

removeAction

Removes a action from the aggregation actions.

Param Type DefaultValue Description
vAction int string sap.m.FeedListItemAction

The action to remove or its index or id

removeAllActions

Removes all the controls from the aggregation actions.

Additionally, it unregisters them from the hosting UIArea.

setActiveIcon

Sets a new value for property activeIcon.

Icon displayed when the list item is active.

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

Param Type DefaultValue Description
sActiveIcon sap.ui.core.URI

New value for property activeIcon

setConvertedLinksDefaultTarget

Sets a new value for property convertedLinksDefaultTarget.

Determines the target attribute of the generated HTML anchor tags. Note: Applicable only if ConvertLinksToAnchorTags property is used with a value other than sap.m.LinkConversion.None. Options are the standard values for the target attribute of the HTML anchor tag: _self, _top, _blank, _parent, _search.

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

Default value is "_blank".

Param Type DefaultValue Description
sConvertedLinksDefaultTarget string "_blank"

New value for property convertedLinksDefaultTarget

setConvertLinksToAnchorTags

Sets a new value for property convertLinksToAnchorTags.

Determines whether strings that appear to be links will be converted to HTML anchor tags, and what are the criteria for recognizing them.

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

Default value is None.

Param Type DefaultValue Description
sConvertLinksToAnchorTags sap.m.LinkConversion None

New value for property convertLinksToAnchorTags

setIcon

Sets a new value for property icon.

Icon to be displayed as graphical element within the FeedListItem. This can be an image or an icon from the icon font. If no icon is provided, a default person-placeholder icon is displayed. Icon is only shown if showIcon = true.

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

Param Type DefaultValue Description
sIcon sap.ui.core.URI

New value for property icon

setIconActive

Sets a new value for property iconActive.

If true, icon is a link, which will fire 'iconPress' events. If false, icon is normal image

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

Default value is true.

Param Type DefaultValue Description
bIconActive boolean true

New value for property iconActive

setIconDensityAware

Sets a new value for property iconDensityAware.

By default, this is set to true but then one or more requests are sent trying to get the density perfect version of image if this version of image doesn't exist on the server.

If bandwidth is the key for the application, set this value to false.

Deprecated as of version 1.88. Image is replaced by avatar.

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

Default value is true.

Param Type DefaultValue Description
bIconDensityAware boolean true

New value for property iconDensityAware

setIconDisplayShape

Sets a new value for property iconDisplayShape.

Defines the shape of the icon.

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

Default value is Circle.

Param Type DefaultValue Description
sIconDisplayShape sap.m.AvatarShape Circle

New value for property iconDisplayShape

setIconInitials

Sets a new value for property iconInitials.

Defines the initials of the icon.

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

Default value is empty string.

Param Type DefaultValue Description
sIconInitials string ""

New value for property iconInitials

setIconSize

Sets a new value for property iconSize.

Defines the size of the icon.

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

Default value is S.

Param Type DefaultValue Description
sIconSize sap.m.AvatarSize S

New value for property iconSize

setInfo

Sets a new value for property info.

The Info text.

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

Param Type DefaultValue Description
sInfo string

New value for property info

setLessLabel

Sets a new value for property lessLabel.

Customizable text for the "LESS" link at the end of the feed list item.
Clicking the "LESS" link collapses the item, hiding the text that exceeds the allowed maximum number of characters.

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

Param Type DefaultValue Description
sLessLabel string

New value for property lessLabel

setMaxCharacters

Sets a new value for property maxCharacters.

The expand and collapse feature is set by default and uses 300 characters on mobile devices and 500 characters on desktops as limits. Based on these values, the text of the FeedListItem is collapsed once text reaches these limits. In this case, only the specified number of characters is displayed. By clicking on the text link More, the entire text can be displayed. The text link Less collapses the text. The application is able to set the value to its needs.

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

Param Type DefaultValue Description
iMaxCharacters int

New value for property maxCharacters

setMoreLabel

Sets a new value for property moreLabel.

Customizable text for the "MORE" link at the end of the feed list item.
When the maximum number of characters defined by the maxCharacters property is exceeded and the text of the feed list item is collapsed, the "MORE" link can be used to expand the feed list item and show the rest of the text.

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

Param Type DefaultValue Description
sMoreLabel string

New value for property moreLabel

setSender

Sets a new value for property sender.

Sender of the chunk

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

Param Type DefaultValue Description
sSender string

New value for property sender

setSenderActive

Sets a new value for property senderActive.

If true, sender string is a link, which will fire 'senderPress' events. If false, sender is normal text.

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

Default value is true.

Param Type DefaultValue Description
bSenderActive boolean true

New value for property senderActive

setShowIcon

Sets a new value for property showIcon.

If set to "true" (default), icons will be displayed, if set to false icons are hidden

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

Default value is true.

Param Type DefaultValue Description
bShowIcon boolean true

New value for property showIcon

setText

Sets a new value for property text.

The FeedListItem text. It supports html formatted tags as described in the documentation of sap.m.FormattedText

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

Param Type DefaultValue Description
sText string

New value for property text

setTimestamp

Sets a new value for property timestamp.

This chunks timestamp

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

Param Type DefaultValue Description
sTimestamp string

New value for property timestamp

setType

Redefinition of sap.m.ListItemBase.setType: type = "sap.m.ListType.Navigation" behaves like type = "sap.m.ListType.Active" for a FeedListItem

Param Type DefaultValue Description
type sap.m.ListType

new value for property type