UrlActionEvent | Tableau Embedding API

Interface UrlActionEvent

An event that can signal when a URL action occurs.

function urlActionEventHandler(event) {
console.log('URL: ' + event.detail.url);
console.log('Target: ' + event.detail.target);
}

let viz = document.getElementById('tableauViz');
viz.addEventListener(TableauEventType.UrlAction, urlActionEventHandler);
interface UrlActionEvent {
    target: string;
    url: string;
}
Index

Properties

Properties

target: string

The target attribute associated with URL (for example, the identifier associated with a browser tab).

url: string

The URL associated with the event.