Skip to Content

Reference

Hide options

Remove controls from the embed with one hide attribute, and what each old flag maps to.

Set hide on <dbn-dashboard> or <dbn-metric> to remove controls without CSS. It requires the plugin release listed in Changelog and versioning.

<dbn-dashboard
  token="GUEST_TOKEN"
  dashboard-id="DASHBOARD_ID"
  hide='{ "search": true, "download": true, "datePresets": ["Life Time"] }'
></dbn-dashboard>
The Store Name filter menu with hide search set: the list of stores shows with no search box above it.

12 keys.

KeyValueHidesOnOld flag (still works)When to use
searchtrueThe search box in every filter menu, the date preset menu includedbothglobalFilterOptions[name].isHideSearchYour viewers do not need search, for example in a short date preset menu.
chartSettingstrueChart settings in the card menubothisHideChartSettingsViewers must not change how a chart looks.
tablePreviewtrueTable preview under the chartbothisHideTablePreviewThe chart should stand alone, with no table under it.
downloadtrueAll download controls, including dashboard ZIP and PDF, card and full-screen downloads, and underlying-data exportsbothdisableDownloadPng; forces enableDownloadCsv, enableEmailCsv, enableDownloadAllMetrics, enableDownloadAllPdf offYou want viewers to use the embed without download controls.
fullScreentrueFull screen entry and title click full screenbothdisableFullscreen; forces enableTitleClickFullscreen offYour page already gives the card the room it needs.
customizeLayouttrueThe viewer’s own layout edit (move, resize, save a personal layout)<dbn-dashboard>options.disableLayoutCustomizationEvery viewer must see the same layout. Search term: “personalise”.
manageMetricstrueThe “Manage Metrics” button<dbn-dashboard>options.disableManageMetricsViewers must not add or remove cards for themselves.
underlyingDatatrueView underlying databothdisableUnderlyingData (options.disableUnderlyingData on the dashboard)Viewers must not open the rows behind a chart.
dashboardNametrueThe dashboard name<dbn-dashboard>options.hideDashboardNameYour page already shows the name.
cardTitletrueThe card title<dbn-metric>isDisableCardTitleYour page already shows the title.
filtersa list of names (string[])Named dashboard filter controls<dbn-dashboard>hideDashboardFiltersYou want to hide controls and keep their saved defaults and selections.
datePresetsa list of names (string[])Named presets in the date pickers, by label (any case)bothhideDatePickerOptionsSome presets do not fit your data, for example “Life Time”.
  • true hides. Leave a key out, or set it to false, and nothing changes.
  • hide adds to the old flags. A control is hidden when the old flag or the hide key hides it. false never shows a control an old flag hid. hide wins over every enable* flag.
  • download also hides Download Metrics when the guest token grants ZIP access. Underlying data remains available to viewers with access.
  • search also removes the search box in the date filter’s preset menu.
  • filters hides the named controls, including filters placed on cards. Queries still use saved defaults, values from global-filter-options, and restored selections. Use the filter label or its displayed name. Keep hideDashboardFilters to remove a filter and its default. See Set filter defaults.
  • These settings control what viewers see. Guest token permissions still govern server access.
  • A key that is not on the list, or a value of the wrong type, is left out with one console warning.

Old flags

Each old flag keeps working. Prefer hide: one object, the same on both elements. Move from internal class names to parts maps each old flag to its hide key.