sap.ui.core.util.Export.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.util.Export 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.Control.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.ui.core.util.Export.
Returns:
Adds some column to the aggregation columns
.
Parameters:
Returns:
Adds some row to the aggregation rows
.
Parameters:
Returns:
Binds aggregation
columns
to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Destroys all the columns in the aggregation columns
.
Returns:
Destroys the exportType in the aggregation exportType
.
Returns:
Destroys all the rows in the aggregation rows
.
Returns:
generate(): Promise
Generates the file content and returns a Promise with the instance as context (this).
The promise will be resolved with the generated content as a string.
Please note: The return value was changed from jQuery Promises to standard ES6 Promises. jQuery specific Promise methods ('done', 'fail', 'always', 'pipe' and 'state') are still available but should not be used. Please use only the standard methods 'then' and 'catch'!
Returns:
Gets content of aggregation
columns
.
Columns for the Export.
Returns:
Gets content of aggregation
exportType
.
Type that generates the content.
Returns:
Gets content of aggregation
rows
.
Rows of the Export.
Returns:
indexOfColumn(oColumn): int
Checks for the provided sap.ui.core.util.ExportColumn
in the aggregation columns
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfRow(oRow): int
Checks for the provided sap.ui.core.util.ExportRow
in the aggregation rows
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a column into the aggregation columns
.
Parameters:
{sap.ui.core.util.ExportColumn} | oColumn | the column to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the column should be inserted at; for a negative value of iIndex , the column is inserted at position 0; for a value greater than the current size of the aggregation, the column is inserted at the last position |
Returns:
Inserts a row into the aggregation rows
.
Parameters:
{sap.ui.core.util.ExportRow} | oRow | the row to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the row should be inserted at; for a negative value of iIndex , the row is inserted at position 0; for a value greater than the current size of the aggregation, the row is inserted at the last position |
Returns:
Removes all the controls from the aggregation
columns
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
rows
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a column from the aggregation columns
.
Parameters:
Returns:
Removes a row from the aggregation rows
.
Parameters:
Returns:
saveFile(sFileName?): Promise
Generates the file content, triggers a download / save action and returns a Promise with the instance as context (this).
The promise will be resolved with the generated content as a string.
For information about browser support, see sap.ui.core.util.File.save
Please note: The return value was changed from jQuery Promises to standard ES6 Promises. jQuery specific Promise methods ('done', 'fail', 'always', 'pipe' and 'state') are still available but should not be used. Please use only the standard methods 'then' and 'catch'!
Parameters:
{string} | sFileName? | file name, defaults to 'data' |
Returns:
Sets the aggregated exportType
.
Parameters:
Returns:
Unbinds aggregation columns
from model data.
Returns:
Unbinds aggregation rows
from model data.
Returns: