class sap.ui.unified.FileUploaderXHRSettings

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/unified/FileUploaderXHRSettings
Application Component: CA-UI5-CTR

Properties for the XMLHttpRequest object used for file uploads.


Constructor

Constructor for a new FileUploaderXHRSettings.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.ui.unified.FileUploaderXHRSettings(sId?, mSettings?)
Param Type Default Value Description
sId? string

id for the new control, generated automatically if no id is given

mSettings? object

initial settings for the new control


Properties

Name Type Default Value Description
withCredentials boolean false

Determines the value of the XMLHttpRequest.withCredentials property

Since: 1.52.

Visibility: public

Methods Overview

Method Description
sap.ui.unified.FileUploaderXHRSettings.extend

Creates a new subclass of class sap.ui.unified.FileUploaderXHRSettings 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.Element.extend.

sap.ui.unified.FileUploaderXHRSettings.getMetadata

Returns a metadata object for class sap.ui.unified.FileUploaderXHRSettings.

getWithCredentials

Gets current value of property withCredentials.

Determines the value of the XMLHttpRequest.withCredentials property

Default value is false.

setWithCredentials

Sets a new value for property withCredentials.

Determines the value of the XMLHttpRequest.withCredentials property

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

Default value is false.

sap.ui.unified.FileUploaderXHRSettings.extend

Creates a new subclass of class sap.ui.unified.FileUploaderXHRSettings 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.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.unified.FileUploaderXHRSettings.getMetadata

Returns a metadata object for class sap.ui.unified.FileUploaderXHRSettings.

getWithCredentials

Gets current value of property withCredentials.

Determines the value of the XMLHttpRequest.withCredentials property

Default value is false.

setWithCredentials

Sets a new value for property withCredentials.

Determines the value of the XMLHttpRequest.withCredentials property

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

Default value is false.

Param Type DefaultValue Description
bWithCredentials boolean false

New value for property withCredentials