Class sap.collaboration.components.fiori.feed.ComponentModule: sap/collaboration/components/fiori/feed/Component


Feed Component

A Feed Component is a ui5 component that applications can use to render a sap.m.App that embeds the JAM Feed Widget.
The Component class extends the base UI5 UIComponent class.
This class defines the Reusable UI5 Component structure, i.e properties, aggregations and events, if any, and creates the UI5 controls to be displayed.

Deprecated API:Since version 1.26.0. Please use sap.collaboration.components.fiori.feed.dialog.Component instead.


Since: version 1.16.
Constructor Summary
new sap.collaboration.components.fiori.feed.Component(oDataServiceUrl?, feedType, groupIds?)Constructor for the Feed Component.
Method Summary
sap.collaboration.components.fiori.feed.Component.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.collaboration.components.fiori.feed.Component with name sClassName and enriches it with the information contained in oClassInfo.
sap.collaboration.components.fiori.feed.Component.getMetadata()Returns a metadata object for class sap.collaboration.components.fiori.feed.Component.
sap.collaboration.components.fiori.feed.Component.setSettings()Contract for passing the settings to the Component.
getFeedType()Gets current value of property feedType.
getGroupIds()Gets current value of property groupIds.
getHeight()Gets current value of property height.
getObject()Gets current value of property object.
getODataServiceUrl()Gets current value of property oDataServiceUrl.
getWidth()Gets current value of property width.
setFeedType(sFeedType)Sets a new value for property feedType.
setGroupIds(sGroupIds)Sets a new value for property groupIds.
setHeight(sHeight)Sets a new value for property height.
setObject(oObject)Sets a new value for property object.
setODataServiceUrl(sODataServiceUrl)Sets a new value for property oDataServiceUrl.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.collaboration.components.fiori.feed.Component(oDataServiceUrl?, feedType, groupIds?)
Constructor for the Feed Component.

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:

Parameters:
{sap.ui.core.URI}oDataServiceUrl? The OData service URL needed for the Feed Component, the default value is "/sap/opu/odata/sap/SM_INTEGRATION_SRV".
{sap.collaboration.FeedType}feedType The type of feed to be displayed.
{string}groupIds? A comma separated list of group IDs.
Deprecated:
Since version 1.26.0. Please use sap.collaboration.components.fiori.feed.dialog.Component instead.
Method Detail
sap.collaboration.components.fiori.feed.Component.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.collaboration.components.fiori.feed.Component with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in Object.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
sap.collaboration.components.fiori.feed.Component.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.collaboration.components.fiori.feed.Component.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
sap.collaboration.components.fiori.feed.Component.setSettings()
Contract for passing the settings to the Component.
Parameters:
getFeedType(): string
Gets current value of property feedType.
Returns:
{string} Value of property feedType
getGroupIds(): string
Gets current value of property groupIds.
Returns:
{string} Value of property groupIds
getHeight(): sap.ui.core.CSSSize
Gets current value of property height.

Default value is .

Returns:
{sap.ui.core.CSSSize} Value of property height
getObject(): object
Gets current value of property object.
Returns:
{object} Value of property object
getODataServiceUrl(): sap.ui.core.URI
Gets current value of property oDataServiceUrl.

Default value is /sap/opu/odata/sap/SM_INTEGRATION_SRV.

Returns:
{sap.ui.core.URI} Value of property oDataServiceUrl
getWidth(): sap.ui.core.CSSSize
Gets current value of property width.

Default value is .

Returns:
{sap.ui.core.CSSSize} Value of property width
Sets a new value for property feedType.

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

Parameters:
{string}sFeedType New value for property feedType
Returns:
{sap.collaboration.components.fiori.feed.Component} Reference to this in order to allow method chaining
Sets a new value for property groupIds.

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

Parameters:
{string}sGroupIds New value for property groupIds
Returns:
{sap.collaboration.components.fiori.feed.Component} Reference to this in order to allow method chaining
Sets a new value for property height.

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

Default value is .

Parameters:
{sap.ui.core.CSSSize}sHeight New value for property height
Returns:
{sap.collaboration.components.fiori.feed.Component} Reference to this in order to allow method chaining
Sets a new value for property object.

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

Parameters:
{object}oObject New value for property object
Returns:
{sap.collaboration.components.fiori.feed.Component} Reference to this in order to allow method chaining
setODataServiceUrl(sODataServiceUrl): sap.collaboration.components.fiori.feed.Component
Sets a new value for property oDataServiceUrl.

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

Default value is /sap/opu/odata/sap/SM_INTEGRATION_SRV.

Parameters:
{sap.ui.core.URI}sODataServiceUrl New value for property oDataServiceUrl
Returns:
{sap.collaboration.components.fiori.feed.Component} Reference to this in order to allow method chaining
Sets a new value for property width.

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

Default value is .

Parameters:
{sap.ui.core.CSSSize}sWidth New value for property width
Returns:
{sap.collaboration.components.fiori.feed.Component} Reference to this in order to allow method chaining