Skip to content

Commit f519997

Browse files
committed
Added table getter
1 parent 52d134e commit f519997

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/perspective-viewer/src/js/viewer.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {ActionElement} from "./viewer/action_element.js";
2828
polyfill({});
2929

3030
/**
31-
* Module for `<perspective-viewer` custom element. There are no exports from
31+
* Module for `<perspective-viewer>` custom element. There are no exports from
3232
* this module, however importing it has a side effect: the
3333
* {@link module:perspective_viewer~PerspectiveViewer} class is registered as a
3434
* custom element, after which it can be used as a standard DOM element. The
@@ -346,6 +346,15 @@ class PerspectiveViewer extends ActionElement {
346346
return this._get_worker();
347347
}
348348

349+
/**
350+
* This element's `perspective.table` instance.
351+
*
352+
* @readonly
353+
*/
354+
get table() {
355+
return this._table;
356+
}
357+
349358
/**
350359
* This element's `perspective.table.view` instance. The instance itself
351360
* will change after every `PerspectiveViewer#perspective-config-update` event.

0 commit comments

Comments
 (0)