sap.ui.ux3.Feed.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.ux3.Feed with name
sClassName and enriches it with the information contained in
oClassInfo.
oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend.
Parameters:
| {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 |
Returns:
| {function} | Created class / constructor function |
Returns a metadata object for class sap.ui.ux3.Feed.
Returns:
Adds some chunk to the aggregation chunks.
Parameters:
Returns:
Adds some filterItem to the aggregation filterItems.
Parameters:
Returns:
Adds some toolsMenuItem to the aggregation toolsMenuItems.
Parameters:
Returns:
Attaches event handler
fnFunction to the
chunkAdded event of this
sap.ui.ux3.Feed.
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.ui.ux3.Feed itself.
Event is fired when a new chunk is added
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.Feed itself |
Returns:
Attaches event handler
fnFunction to the
filterChange event of this
sap.ui.ux3.Feed.
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.ui.ux3.Feed itself.
Event is fired when the filter is changed
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.Feed itself |
Returns:
Attaches event handler
fnFunction to the
search event of this
sap.ui.ux3.Feed.
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.ui.ux3.Feed itself.
Event is fired when the search function on SearchField is triggered
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.Feed itself |
Returns:
Attaches event handler
fnFunction to the
toggleLive event of this
sap.ui.ux3.Feed.
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.ui.ux3.Feed itself.
Event is fired when the live mode has changed
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.Feed itself |
Returns:
Attaches event handler
fnFunction to the
toolsItemSelected event of this
sap.ui.ux3.Feed.
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.ui.ux3.Feed itself.
Event is fired when an item from the tools MenuButton was selected
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.Feed itself |
Returns:
Parameters:
| {object} | oBindingInfo | The binding information |
Returns:
Binds aggregation
filterItems to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.
Parameters:
| {object} | oBindingInfo | The binding information |
Returns:
Binds aggregation
toolsMenuItems to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.
Parameters:
| {object} | oBindingInfo | The binding information |
Returns:
Destroys all the chunks in the aggregation chunks.
Returns:
Destroys all the filterItems in the aggregation filterItems.
Returns:
Destroys all the toolsMenuItems in the aggregation toolsMenuItems.
Returns:
Detaches event handler
fnFunction from the
chunkAdded event of this
sap.ui.ux3.Feed.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
filterChange event of this
sap.ui.ux3.Feed.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
search event of this
sap.ui.ux3.Feed.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
toggleLive event of this
sap.ui.ux3.Feed.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
toolsItemSelected event of this
sap.ui.ux3.Feed.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event
chunkAdded to attached listeners.
Expects the following event parameters:
chunk of type sap.ui.ux3.FeedChunkNew chunk
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
filterChange to attached listeners.
Expects the following event parameters:
newValue of type stringThe new/changed value of the filter
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
search to attached listeners.
Expects the following event parameters:
query of type stringThe search query
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
toggleLive to attached listeners.
Expects the following event parameters:
live of type booleanCurrent live indicator
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
toolsItemSelected to attached listeners.
Expects the following event parameters:
itemId of type stringThe Id of the selected itemitem of type sap.ui.unified.MenuItemBaseThe selected item
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
chunks.
The chunks
Returns:
getFeederSender(): string
Gets current value of property
feederSender.
The sender of the feeder
Returns:
| {string} | Value of property feederSender |
Gets current value of property
feederThumbnailSrc.
The path to the thumbnail image used for the feeder
Returns:
Gets content of aggregation
filterItems.
Items of the filter
Returns:
getLive(): boolean
Gets current value of property
live.
Specifies whether the feed shall be in live mode
Default value is true.
Returns:
| {boolean} | Value of property live |
getTitle(): string
Gets current value of property
title.
Title text of the Feed. If no text is entered "FEED" is displayed.
Returns:
| {string} | Value of property title |
Gets content of aggregation
toolsMenuItems.
MenuItems to open when the tool button is clicked by the user
Returns:
indexOfChunk(oChunk): int
Checks for the provided sap.ui.ux3.FeedChunk in the aggregation chunks. and returns its index if found or -1 otherwise.
Parameters:
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfFilterItem(oFilterItem): int
Checks for the provided sap.ui.core.ListItem in the aggregation filterItems. and returns its index if found or -1 otherwise.
Parameters:
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfToolsMenuItem(oToolsMenuItem): int
Checks for the provided sap.ui.commons.MenuItem in the aggregation toolsMenuItems. and returns its index if found or -1 otherwise.
Parameters:
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a chunk into the aggregation chunks.
Parameters:
| {sap.ui.ux3.FeedChunk} | oChunk | the chunk to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the chunk should be inserted at; for a negative value of iIndex, the chunk is inserted at position 0; for a value greater than the current size of the aggregation, the chunk is inserted at the last position |
Returns:
Inserts a filterItem into the aggregation filterItems.
Parameters:
| {sap.ui.core.ListItem} | oFilterItem | the filterItem to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the filterItem should be inserted at; for a negative value of iIndex, the filterItem is inserted at position 0; for a value greater than the current size of the aggregation, the filterItem is inserted at the last position |
Returns:
Inserts a toolsMenuItem into the aggregation toolsMenuItems.
Parameters:
| {sap.ui.commons.MenuItem} | oToolsMenuItem | the toolsMenuItem to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the toolsMenuItem should be inserted at; for a negative value of iIndex, the toolsMenuItem is inserted at position 0; for a value greater than the current size of the aggregation, the toolsMenuItem is inserted at the last position |
Returns:
Removes all the controls from the aggregation
chunks.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
filterItems.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
toolsMenuItems.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a chunk from the aggregation chunks.
Parameters:
Returns:
Removes a filterItem from the aggregation filterItems.
Parameters:
Returns:
Removes a toolsMenuItem from the aggregation toolsMenuItems.
Parameters:
Returns:
Sets a new value for property
feederSender.
The sender of the feeder
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sFeederSender | New value for property feederSender |
Returns:
Sets a new value for property
feederThumbnailSrc.
The path to the thumbnail image used for the feeder
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {sap.ui.core.URI} | sFeederThumbnailSrc | New value for property feederThumbnailSrc |
Returns:
Sets a new value for property
live.
Specifies whether the feed shall be in live mode
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bLive | New value for property live |
Returns:
Sets a new value for property
title.
Title text of the Feed. If no text is entered "FEED" is displayed.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sTitle | New value for property title |
Returns:
Unbinds aggregation chunks from model data.
Returns:
Unbinds aggregation filterItems from model data.
Returns:
Unbinds aggregation toolsMenuItems from model data.
Returns: