@eeacms/tableau-api-js
v1.1.1
Published
Package with latest tableau api scripts
Downloads
1
Readme
tableau-api-js
Package with latest tableau api scripts
How to use
"dependencies": {
"tableau-api-js": "github:eea/tableau-api-js#1.1.0"
}
import { tableauVersions, getLatestTableauVersion } from 'tableau-api-js';
import loadTableauApi from 'tableau-api-js';
let tableau;
console.log(tableauVersions) // Array with all available versions
loadTableauApi(getLatestTableauVersion())
.then((response) => {
// Tableau can be accesed from window.tableau
// or you can set a global variable from loadTableauApi response
tableau = response.tableau;
message = response.message;
})
.catch((error) => {
console.log(error.message);
})
This is intended to be used with Volto tableau