[]
GcDocs Data Viewer - v1.0.1 / GcDataViewer
GcDocs Data Viewer control.
ReportViewer
↳ GcDataViewer
▪ Static
LicenseKey: string
Product license key.
Example
<script>
// Add your license
GcDataViewer.LicenseKey = 'XXX';
// Add your code
const viewer = new GcDataViewer("#viewer");
</script>
▸ Static
findControl(selector
): undefined
| GcDataViewer
Gets the viewer instance using the host element or host element selector
Example
var viewer = GcDataViewer.findControl("#root");
Name | Type |
---|---|
selector |
string | HTMLElement |
undefined
| GcDataViewer
▸ dispose(): void
Use this method to close and release resources occupied by the GcDataViewer.
void
ReportViewer.dispose
▸ openFile(file
, fileType
, openOptions?
): Promise
<any
>
Open data file.
Example
viewer.openFile("Documents/HelloWorld.xlsx", FileType.XLSX, {loadHiddenSheets: true});
Name | Type | Description |
---|---|---|
file |
Blob |
The data file. |
fileType |
FileType |
The type of the imported data file. |
openOptions? |
XlsxOpenOptions | SSJsonOpenOptions | CsvOpenOptions |
The options for import data file. |
Promise
<any
>
• new GcDataViewer(element
)
GcDocs Data Viewer constructor.
Name | Type | Description |
---|---|---|
element |
string | HTMLElement |
root container element or selector pattern used to select the root container element. |
ReportViewer.constructor