Embedded Library Properties and Objects
This applies to: Visual Data Discovery
The library embed feature also includes pre-defined actions for adding a dashboard and opening a dashboard.
Here's what you can do with pre-defined actions:
Specify an action for embed action
Specify an action for navigate to link
Change a cursor if a column has onClick action specified
Pass an item id to the link ("https://dashboards.company.com/edit/${inventoryitemId}")
The following Actions are supported:
Action |
---|
Embed |
Open |
Below is a code sample for using the onClick property:
Type | Example |
---|---|
FunctionClickHandler |
(data?: InventoryItem) => console.log(data) |
EmbedClickHandler |
{
type: "embed",
parentElement: "#editor-container", // OR document.querySelector("#editor-container")
replaceComponent: true,
componentParams: { ... }
}
|
LinkClickHandler |
{
type: "link",
href: "https://dashboards.com/edit/${inventoryItemId}",
target: "_blank"
}
|
Comments
0 comments
Please sign in to leave a comment.