Skip to content

[ENHANCEMENT REQUEST] types for <tableau-viz> custom element #27

Description

@jamesarosen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions