import ExcelExporter from 'flexicious-react-datagrid/js/flexgrid/export/ExcelExporter.js'
ExcelExporter
Extends:
An extension to the basic HTML Exporter that exports excel
Method Summary
Public Methods | ||
public |
getClassNames(): string[] |
|
public |
Returns the content type so MS Excel launches when the exporter is run. |
|
public |
Extension of the download file. |
|
public |
Name of the exporter |
|
public |
writeFooter(grid: *, dataProvider: *): String Writes the footer in excel format |
|
public |
writeHeader(grid: *): String Writes the header of the grid (columns) in excel format |
Inherited Summary
From class TypedObject | ||
public |
typeCache: {} |
|
public |
|
|
public |
Returns a list of strings that represent the object hierarchy for this object. |
|
public |
implementsOrExtends(name: *): Boolean Returns true if the class name to check is in the list of class names defined for this class. |
From class Exporter | ||
public static |
getColumnHeader(col: *, colIndex: *): * Gets the header for the row |
|
public |
allRecords: *[] |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
getClassNames(): string[] |
|
public |
Returns the content type so the appropriate application launches when the exporter is run. |
|
public |
Extension of the download file. |
|
public |
Name of the exporter |
|
public |
The current nest depth of the record being exported |
|
public |
The nest indent on basis of the nest depth |
|
public |
Depending on the level, gets indentation spaces |
|
public |
isIncludedInExport(col: *): Boolean | * Checks whether this column should be exported |
|
public |
saveFile(body: *, fileName: *, exportOptions: *): * Saves the file to disk, or sends it to a remote server to buffer back. |
|
public |
uploadForEcho(body: *, exportOptions: *) Just in case in the client wants to customize the upload behavior of their exporters. |
|
public |
uploadToServer(body: *, exportOptions: *) Not used |
|
public |
writeFooter(grid: *, dataProvider: *): String Writes out the footer for the row |
|
public |
writeHeader(grid: *): String Writes out the header for the row |
|
public |
writeRecord(grid: *, record: *): String Writes out the record for the row |
From class HtmlExporter | ||
public |
|
|
public |
|
|
public |
escapeHtml(val: *): String | XML Escapes html characters to make valid html string |
|
public |
|
|
public |
Returns the content type so the browser launches when the exporter is run. |
|
public |
Extension of the download file. |
|
public |
Name of the exporter |
|
public |
startDocument(grid: *) |
|
public |
uploadForEcho(body: *, exportOptions: *) |
|
public |
writeFooter(grid: *, dataProvider: *): String Writes the footer in HTML format |
|
public |
writeHeader(grid: *): String: * |
|
public |
writeRecord(grid: IExtendedDataGrid, record: *): String Builds the html representation of a header row. |
Public Methods
public getClassNames(): string[] source
Returns a list of strings that represent the object hierarchy for this object.
Override:
HtmlExporter#getClassNamespublic getContentType(): String source
Returns the content type so MS Excel launches when the exporter is run.
Override:
HtmlExporter#getContentTypepublic getExtension(): String source
Extension of the download file.
Override:
HtmlExporter#getExtensionpublic writeFooter(grid: *, dataProvider: *): String source
Writes the footer in excel format
Override:
HtmlExporter#writeFooterParams:
Name | Type | Attribute | Description |
grid | * | ||
dataProvider | * |
public writeHeader(grid: *): String source
Writes the header of the grid (columns) in excel format
Override:
HtmlExporter#writeHeaderParams:
Name | Type | Attribute | Description |
grid | * |