[]
Sheets.TableSheet.TableSheetPanel
• 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);
| Name | Type | Description |
|---|---|---|
name |
string |
The table sheet panel name. |
tableSheet |
TableSheet |
The table sheet. |
host |
HTMLElement |
The host element. |
options? |
IPanelOption |
- |
▸ attach(tableSheet): void
Attaches a table sheet into current table sheet panel.
example
//This example attaches a table sheet.
panel.attach(tableSheet);
| Name | Type | Description |
|---|---|---|
tableSheet |
TableSheet |
The table sheet. |
void
▸ destroy(): void
Destroys current table sheet panel.
example
//This example destroys current table sheet panel.
panel.destroy();
void
▸ detach(): void
Detaches a table sheet from current table sheet panel.
example
//This example detaches a table sheet.
panel.detach();
void
▸ 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"));
| Name | Type | Description |
|---|---|---|
host |
string | HTMLElement |
The host element. |