Skip to content

"hide_filter" property in withParams method on embed builder only hides one filter #159

@nuwen

Description

@nuwen

Hello

I have have an embedded dashboard using createDashboardWithId that has many filters, but I need to hide a few specific filters from the dashboard.

I am trying to hide the filters "Date selector" and "Date filter", code example below.

const options = {
  hide_filter: "Date selector"
}

const db = LookerEmbedSDK.createDashboardWithId("123")
  .withParams(options)
  .withNext('') 
  .appendTo(el)
  .build()
  .connect()
  .then((d) => {
    setupDashboard(d);
   })

I have tried

const options = {
  hide_filter: "Date selector",
  hide_filter: "Date filter"
}

Ends up only hiding "Date filter", because it does not allow repeat properties

const options = {
  hide_filter: "Date selector,Date filter",
}

Does not work, results in showing both filters

const options = {
  hide_filter: ["Date selector","Date filter"],
}

Obviously doesn't work because it expects a string.

Thanks for looking!

Link to hide_filter docs https://cloud.google.com/looker/docs/filters-user-defined-dashboards#hiding_dashboard_filters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions