The @tableau/embedding-api README says,
Warning: If your embedded vizzes are in environments where you do not control the deployed version of Tableau, like Tableau Public or Tableau Cloud, it is recommended to import the Embedding API library from the server itself—not installing it from NPM—since the server will always provide the latest compatible version. See Where to get the Embedding API v3 library for more information.
Following that practice, I have loaded the library from Tableau Cloud and used the <tableau-viz> custom element to embed Tableau. That works.
Problem: there are no types defined for that custom element. I can't set attributes or add handlers in a typesafe way.
I can import TableauViz, which has properties like hideTabs, but that's a JavaScript property, not a custom element attribute. The attribute is hide-tabs, and the only reference to that is in TableauWebComponent.prototype.attributeChangedCallback.
The @tableau/embedding-api README says,
Following that practice, I have loaded the library from Tableau Cloud and used the
<tableau-viz>custom element to embed Tableau. That works.Problem: there are no types defined for that custom element. I can't set attributes or add handlers in a typesafe way.
I can import
TableauViz, which has properties likehideTabs, but that's a JavaScript property, not a custom element attribute. The attribute ishide-tabs, and the only reference to that is inTableauWebComponent.prototype.attributeChangedCallback.