Skip to content

Commit

Permalink
[update] getTable updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tbshag2 committed Jun 13, 2024
1 parent eefc014 commit 31ac635
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/api/methods/gettable-method.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ description: You can learn about the getTable method in the documentation of the

### Description

@short: Gets access to the underlying Grid widget instance in the Pivot
@short: Gets access to the underlying DataGrid widget instance in the Pivot

This method is used when there's a need to access the underlying Grid widget instance in the Pivot. It provides direct access to all table functionality ([Grid API](https://docs.svar.dev/svelte/grid/api/overview/api_overview)), allowing for operations such as data serialization and exporting in various formats.
This method is used when there's a need to access the underlying DataGrid widget instance in the Pivot. It provides direct access to all DataGrid functionality ([DataGrid API](https://docs.svar.dev/svelte/grid/api/overview/api_overview)), allowing for operations such as data serialization and exporting in various formats.

### Usage

Expand All @@ -21,11 +21,11 @@ getTable(wait:boolean): Table | Promise;

### Parameters

`wait` - defines to wait until Grid API is available in Pivot (necessary when Grid API is used during with Pivot initialization). If `wait` is set to **true**, the method returns a promise with Grid API.
`wait` - defines to wait until DataGrid API is available in Pivot (necessary when DataGrid API is used during with Pivot initialization). If the value is set to **true**, the method returns a promise with DataGrid API.

### Example

In the example below we get access to the DataGrid widget API and trigger the Grid [`export`](https://docs.svar.dev/svelte/grid/api/actions/export) action with the button click using the [`api.exe()`](/api/methods/exec) method.
In the example below we get access to the DataGrid widget API and trigger the [`export`](https://docs.svar.dev/svelte/grid/api/actions/export) action with the button click using the [`api.exe()`](/api/methods/exec) method.

~~~jsx {}
// create Pivot
Expand Down

0 comments on commit 31ac635

Please sign in to comment.