Class sap.collaboration.components.fiori.sharing.attachment.AttachmentModule: sap/collaboration/components/fiori/sharing/attachment/Attachment
Attachment
Attachment objects represent files.
Since: version 1.20.
Constructor Summary
new sap.collaboration.components.fiori.sharing.attachment.Attachment(name:, mimeType:, url:)This constructor must be called in the following way:
new Attachment("name", "mimeType", "url")
name, mimeType, and url are only place holders and can be any string.
Method Summary
sap.collaboration.components.fiori.sharing.attachment.Attachment.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.collaboration.components.fiori.sharing.attachment.Attachment with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.collaboration.components.fiori.sharing.attachment.Attachment.getMetadata()Returns a metadata object for class sap.collaboration.components.fiori.sharing.attachment.Attachment.
Constructor Detail
new sap.collaboration.components.fiori.sharing.attachment.Attachment(name:, mimeType:, url:)
This constructor must be called in the following way:
new Attachment("name", "mimeType", "url")
name, mimeType, and url are only place holders and can be any string.
Parameters:
{string} | name: | The file's name. |
{string} | mimeType: | The file's mime type. |
{string} | url: | A url that points to the file. |
Method Detail
sap.collaboration.components.fiori.sharing.attachment.Attachment.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.collaboration.components.fiori.sharing.attachment.Attachment 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.sharing.attachment.Attachment.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.collaboration.components.fiori.sharing.attachment.Attachment.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |