[]
        
(Showing Draft Content)

GC.Spread.Sheets.TableSheet.TableSheetPanel

Class: TableSheetPanel

Sheets.TableSheet.TableSheetPanel

Table of contents

Constructors

Methods

Constructors

constructor

new TableSheetPanel(name, tableSheet, host, options?)

Represents a table sheet panel with the specified name, table sheet, host element and options setting.

example

//This example creates a TableSheetPanel.
var host = document.getElementById("panel");
var panel = new GC.Spread.Sheets.TableSheet.TableSheetPanel("myPanel", tableSheet, host);

Parameters

Name Type Description
name string The table sheet panel name.
tableSheet TableSheet The table sheet.
host HTMLElement The host element.
options? IPanelOption -

Methods

attach

attach(tableSheet): void

Attaches a table sheet into current table sheet panel.

example

//This example attaches a table sheet.
panel.attach(tableSheet);

Parameters

Name Type Description
tableSheet TableSheet The table sheet.

Returns

void


destroy

destroy(): void

Destroys current table sheet panel.

example

//This example destroys current table sheet panel.
panel.destroy();

Returns

void


detach

detach(): void

Detaches a table sheet from current table sheet panel.

example

//This example detaches a table sheet.
panel.detach();

Returns

void


findControl

Static findControl(host): TableSheetPanel

Finds a table sheet panel by a DOM element.

example

//This example finds a table sheet panel by a DOM element.
GC.Spread.Sheets.TableSheet.TableSheetPanel.findControl(document.getElementById("sampleDiv"));

Parameters

Name Type Description
host string | HTMLElement The host element.

Returns

TableSheetPanel