Tableau API
This is a version of the JavaScript API for Tableau wrapped as an NPM module.
Usage
To use this module:
npm install --save tableau-api
Then, require it in your code:
var tableau = require('tableau-api');
Or import it directly:
import tableau from "tableau-api";
Once imported, you'll need to add it as follows:
{ const vizUrl = "https://public.tableau.com/views/VacationHome/VacationHome?:embed=y&:display_count=yes"; const options = hideTabs: true width: "700px" height: "800px" { const sheet = viz; const options = ignoreAliases: false ignoreSelection: false includeAllColumns: false ; sheet } ; let viz = thiscontainer vizUrl options;
This will provide you with the most up-to-date functionality in the API.
Refer to the API documentation for the details on how to use it.