Share Component
A Share Component is a ui5 component that applications can use to share information to SAP Jam
Deprecated API:Since version 1.26.0. Please use sap.collaboration.components.fiori.sharing.dialog.Component instead.
Since: version 1.16.
Method Summary
getHeight()Gets current value of property height
. getObject()Gets current value of property object
. getWidth()Gets current value of property width
. setAttachments(oAttachments)Sets a new value for property attachments
. setHeight(sHeight)Sets a new value for property height
. setObject(oObject)Sets a new value for property object
. setWidth(sWidth)Sets a new value for property width
. Constructor Detail
new sap.collaboration.components.fiori.sharing.Component(oDataServiceUrl?, attachments?)
Constructor for the share 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 share component, the default value is "/sap/opu/odata/sap/SM_INTEGRATION_SRV" |
| | |
| | |
{object} | attachments? | When you want to provide the user with the option to share file attachments, then the following properties need to be specified: |
- Deprecated:
- Since version 1.26.0. Please use sap.collaboration.components.fiori.sharing.dialog.Component instead.
Method Detail
sap.collaboration.components.fiori.sharing.Component.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.collaboration.components.fiori.sharing.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 |
Returns a metadata object for class sap.collaboration.components.fiori.sharing.Component.
Returns:
sap.collaboration.components.fiori.sharing.Component.setSettings(oSettings)
Setter for the Component settings.
Parameters:
{object} | oSettings | A JSON object used to set the component settings, this object should contains the same properties used in the constructor. |
sap.collaboration.components.fiori.sharing.Component.shareToJam()
Shares the data to Jam group
getAttachments(): object
Gets current value of property attachments
.
Returns:
{object} | Value of property attachments |
Gets current value of property
collaborationHostODataServiceUrl
.
Default value is /sap/bc/ui2/smi/rest_tunnel/Jam/api/v1/OData
.
Returns:
getExternalObject(): object
Gets current value of property externalObject
.
Returns:
{object} | Value of property externalObject |
Gets current value of property
height
.
Default value is 100%
.
Returns:
getObject(): object
Gets current value of property object
.
Returns:
{object} | Value of property object |
Gets current value of property
oDataServiceUrl
.
Default value is /sap/opu/odata/sap/SM_INTEGRATION_V2_SRV
.
Returns:
Gets current value of property
tunnelServiceUrl
.
Default value is /sap/bc/z_sail_httproxy/Jam/api/v1/OData
.
Returns:
Gets current value of property
width
.
Default value is 100%
.
Returns:
Sets a new value for property
attachments
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{object} | oAttachments | New value for property attachments |
Returns:
Sets a new value for property
collaborationHostODataServiceUrl
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is /sap/bc/ui2/smi/rest_tunnel/Jam/api/v1/OData
.
Parameters:
{sap.ui.core.URI} | sCollaborationHostODataServiceUrl | New value for property collaborationHostODataServiceUrl |
Returns:
Sets a new value for property
externalObject
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{object} | oExternalObject | New value for property externalObject |
Returns:
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 100%
.
Parameters:
Returns:
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:
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_V2_SRV
.
Parameters:
Returns:
Sets a new value for property
tunnelServiceUrl
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is /sap/bc/z_sail_httproxy/Jam/api/v1/OData
.
Parameters:
Returns:
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 100%
.
Parameters:
Returns: