Can a Custom Visualization API v2 visualization open the native Visual Drilling dialog?

Hi,
I’m building a custom visualization using Custom Visualization API v2.

I can successfully trigger dashboard filters using:
this.trigger(“filter”, …)

My goal is to open the native Visual Drilling dialog from a custom visualization, specifically the menu that provides options such as:

  • Show as Table
  • Show as Grouped Columns
  • Show as Heatmap Table
  • Show as Stacked Line

I’ve investigated the following:

  • queryResponse.drill_metadata
  • queryResponse.drill_menu_build_time
  • the native StyledDrillingDialog component
  • sandboxed iframe behavior
  • window.Looker (undefined inside the custom visualization iframe)
  • Custom Visualization API v2 documentation

I could not find a documented equivalent of:
this.trigger(“drill”)

or any supported API for opening the native Visual Drilling dialog.

Is Visual Drilling accessible from Custom Visualization API v2?

If not, is there any supported alternative for reproducing the “Show as Table / Show as Chart” experience from a custom visualization without maintaining multiple dashboards?

Thanks!

Hey @zuza

I understand your issue, but unfortunately, Looker does not provide this functionality. The native Visual Drilling dialog (“Show as Table” / “Show as Chart”) is not accessible through the Custom Visualization API v2.

I have not found a documented trigger for the native drilling dialog either, and window.Looker being undefined inside the sandbox suggests it is deliberately closed off. Your best bet is probably rebuilding a simplified version of the menu yourself, using queryResponse.drill_metadata to populate the options, then rendering the alternative views inside your own component. Not ideal, but it avoids maintaining duplicate dashboards. Worth posting in the Looker developer forum too, since the team occasionally confirms what is off limits.