Hi team, is there a way to hide sections of an emb...
# gooddata-cloud
j
Hi team, is there a way to hide sections of an embedded dashboard when using the webComponent, without relying on readonly attribute, I wanted to do the same thing as with the iframe that has hideControl, but couldn't get this to work with the webComponent. Please let me know, thanks!
k
There is no documented equivalent of the iframe
hideControl=[...]
option for the
gd-dashboard
web component. For
gd-dashboard
, the only supported attributes are:
Copy code
html <gd-dashboard   dashboard="my-dashboard-id"   workspace="my-workspace-id"   locale="en_US"   readonly ></gd-dashboard>
-
dashboard
(required) -
workspace
(optional) -
locale
(optional) -
readonly
(optional, disables editing/sharing and other state‑changing actions) [[Dashboard custom element](https://www.gooddata.com/docs/gooddata-ui/latest/learn/web_components/dashboard_custom_element/)] Unlike iframe embedding, where you can use URL parameters such as:
Copy code
text ?hideControl=[filterBar,topBar,widgetsCatalogue,deleteButton,saveAsButton,shareButton]
to hide specific UI sections [[Iframe config options](https://www.gooddata.com/docs/cloud/embed-visualizations/iframes/embed-dashboard-via-iframe/#configuration-options)], the web component API does not expose similar fine‑grained controls. Community discussions also confirm that web component customizations are limited and that
readonly
is the main way to hide edit/share and related controls without changing permissions. [[Slack: web components & readonly](https://gooddataconnect.slack.com/archives/C04S1MSLEAW/p1706006427064999?thread_ts=1706006427.064999&amp;cid=C04S1MSLEAW); [Slack: hide Share via readonly](https://gooddataconnect.slack.com/archives/C01UR5BGAHY/p1758292954874719?thread_ts=1758292954.874719&amp;cid=C01UR5BGAHY)] So, based on the available documentation: - You cannot selectively hide sections (like top bar, share button, etc.) via a `hideControl`‑style option on
gd-dashboard
. - Your current options are: - Use
readonly
on the web component to hide/disable editing and sharing. - Or switch to iframe embedding if you need
hideControl
and other URL‑based UI controls. If you need more granular control while staying with web components, the knowledge sources do not describe any supported way to achieve that today.