GcDocs Data Viewer constructor.
root container element or selector pattern used to select the root container element.
Static
LicenseProduct license key.
<script>
// Add your license
GcDataViewer.LicenseKey = 'XXX';
// Add your code
const viewer = new GcDataViewer("#viewer");
</script>
Get the current toolbar layout information.
viewer.toolbarLayout
Sets the toolbar layout information and modify layout.
viewer.toolbarLayout = { default: ['open', 'zoom', 'fullscreen', 'theme-change'] }
Static
findGets the viewer instance using the host element or host element selector
var viewer = GcDataViewer.findControl("#root");
Open data file.
The data file.
The type of the imported data file.
Optional
openOptions: XlsxOpenOptions | SSJsonOpenOptions | CsvOpenOptions | SjsOpenOptionsThe options for imported data file.
viewer.openFile("Documents/HelloWorld.xlsx", FileType.XLSX, {loadHiddenSheets: true});
GcDocs Data Viewer control.