Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will remove the header but keep the category list.

...

Interacting with the

...

left & right drawers

One thing to note with the different embed options is that you can actually use JavaScript JavaScript’s post message API to open the category list / filter panel within the various modes if you wish to (and if they’re available in that category mode).

The left drawer tag will open the category list as long as the embed mode allows for the category list to be active (Options 0 and 3)

...

. To interact with it you can use something like below:

Code Block
languagejs
targetWindow.postMessage("open-drawer:left");

The right drawer tag will open the filter panel for every embed mode available.

...

Similarly, you can open it using the same syntax as above:

Code Block
languagejs
targetWindow.postMessage("open-drawer:right");

The right drawer panel can be opened via a query parameter too: enableDynamicFilterPanel=true. This lets the dashboard know that the category should load with the Category Object Filters list open

The full range of messages the dashboard interprets can be found in our API Embed Examples and they include opening, closing, pinning and unpinning drawers.

Using filters to filter a chart via JavaScript while embedded

...