sap.collaboration.components.socialtimeline.Component.createContent()
The method to create the Content (UI Control Tree) of the Component.
sap.collaboration.components.socialtimeline.Component.deleteTimelineEntry(sId)
Delete a Timeline Entry. This method should be called when a custom action requires a deletion of a Timeline entry and should only be called if an a delete to the backend is performed successfully.
Parameters:
{string} | sId | the id of the timeline entry to delete |
sap.collaboration.components.socialtimeline.Component.exit()
Cleans up the component instance before destruction.
sap.collaboration.components.socialtimeline.Component.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.collaboration.components.socialtimeline.Component 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.UIComponent.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.collaboration.components.socialtimeline.Component.
Returns:
sap.collaboration.components.socialtimeline.Component.init()
Initializes the Component instance after creation.
sap.collaboration.components.socialtimeline.Component.onAfterRendering()
Function is called when the rendering of the Component Container is completed.
sap.collaboration.components.socialtimeline.Component.onBeforeRendering()
Function is called when the rendering of the Component Container is started.
sap.collaboration.components.socialtimeline.Component.setBusinessObject(oObject)
Set the current business object for the social timeline to display. Note: The function setBusinessObjectMap must be called once before calling setBusinessObject for the first time.
Parameters:
{object} | oObject | an object that contains the key and name for the business object |
sap.collaboration.components.socialtimeline.Component.setBusinessObjectMap({object)
Set the business object map. It is used to initialize the data needed to retrieve the timeline entries. This function must be called once before calling setBusinessObjectKey for the first time.
Parameters:
| {object | businessObjectMap required - JSON object containing the following properties: - {sap.ui.model.odata.ODataModel} serviceModel required - OData model to retrieve timeline entries
- {string} servicePath: The relative path to the OData service for the business object (example: "/sap/opu/odata/sap/ODATA_SRV")
- {string} collection: Entity collection name of the business object
- {string} applicationContext: The application context (example: "CRM", "SD", etc.)
- {function} customActionCallback: A callback function to determine which timeline entries should receive the custom action. The function should return an array of text/value objects.
|
sap.collaboration.components.socialtimeline.Component.setProperty()
Set property of component
sap.collaboration.components.socialtimeline.Component.setSettings(settings)
Setter for the Component settings.
Parameters:
{object} | settings | A JSON object used to set the component settings, this object should contains the same properties used in the constructor. |
sap.collaboration.components.socialtimeline.Component.updateTimelineEntry(sText, sId)
Update a Timeline Entry text. This method should be called when a custom action requires a content update of a Timeline entry and should only be called if an an update to the backend is performed successfully.
Parameters:
{string} | sText | the text that will be displayed in the content of the timeline entry |
{string} | sId | the id of the timeline entry to update |
Attaches event handler
fnFunction
to the
customActionPress
event of this
sap.collaboration.components.socialtimeline.Component
.
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.collaboration.components.socialtimeline.Component
itself.
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.collaboration.components.socialtimeline.Component itself |
Returns:
Detaches event handler
fnFunction
from the
customActionPress
event of this
sap.collaboration.components.socialtimeline.Component
.
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 customActionPress
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets current value of property
alignment
.
Default value is Right
.
Returns:
Getter for property
axisOrientation
. Timeline axis orientation.
Default value is Vertical
Returns:
getCustomFilter(): array
Getter for property
customFilter
.
Default value is []
. The customFilter is an array of objects, each object contains text and value. Text is the name of the filter category and value is the filter value.
Returns:
{array} | the value of property customFilter |
getEnableSocial(): boolean
Gets current value of property
enableSocial
.
Default value is true
.
Returns:
{boolean} | Value of property enableSocial |
getNoDataText(): string
Getter for property
noDataText
. This text is displayed when the control has no data.
Default value is empty/undefined
Returns:
{string} | the value of property noDataText |
getShowIcons(): boolean
Getter for property
showIcons
. Show icon on each Timeline item.
Default value is true
Returns:
{boolean} | the value of property showIcons |
getVisible(): boolean
Getter for property
visible
. Set Timeline control visibility
Default value is true
Returns:
{boolean} | the value of property visible |
Getter for property
width
. Sets the width of the Timeline.
Default value is 100%
Returns:
Sets a new value for property
alignment
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Right
.
Parameters:
Returns:
Setter for property
axisOrientation
.
Default value is Vertical
Parameters:
Returns:
Sets a new value for property
customFilter
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{object[]} | sCustomFilter | New value for property customFilter |
Returns:
Sets a new value for property
enableSocial
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableSocial | New value for property enableSocial |
Returns:
Setter for property
noDataText
.
Default value is empty/undefined
Parameters:
{string} | sNoDataText | new value for property noDataText |
Returns:
Setter for property
showIcons
.
Default value is true
Parameters:
{boolean} | bShowIcons | new value for property showIcons |
Returns:
Setter for property
visible
.
Default value is true
Parameters:
{boolean} | bVisible | new value for property visible |
Returns:
Setter for property
width
.
Default value is 100%
Parameters:
Returns:
sap.collaboration.components.socialtimeline.Component.setBusinessObjectKey(sKey)
Set the current business object for the social timeline to display. Note: The function setBusinessObjectMap must be called once before calling setBusinessObjectKey for the first time.
Parameters:
- Deprecated:
- since 1.28.5. This method is deprecated, use method setBusinessObject instead.