# Changing which elements are hidden in embed mode?

**URL:** <https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534>\
**Category:** Kibana\
**Created:** [August 11, 2020, 10:35am UTC](https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534 "2020-08-11T10:35:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoRocco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcorocco/32/71283_2.png) [@MarcoRocco](https://discuss.elastic.co/u/MarcoRocco)\
**Post date:** [August 11, 2020, 10:35am UTC](https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534/1 "2020-08-11T10:35:12Z")

</div>

Hey y'all,

I have a custom build of kibana running with quite a few source code changes, one thing I'm kind of stuck on is modifying which elements of a dashboard are hidden/displayed when `embed=true`. I'd like to show pretty much everything that's visible normally except the actual nav bar used to access other parts of kibana.

Thanks!

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [August 11, 2020, 1:13pm UTC](https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534/2 "2020-08-11T13:13:49Z")

</div>

Hello Marko,

Do you mean the elements of each individual app that are hidden? This is handled programatically by each app. What gets shown vs. not is primarily decided by the devs maintaining the app. It could be as simple as hiding the elements or it could be that some app elements weren't included at all since they weren't relevant in that context.

If you want to do a deeper dive on what any specific app does or does not include, look for files with names like `embeddable_factory.ts` or `<app-name>_embeddable_factory.ts` and look through them.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![MarcoRocco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcorocco/32/71283_2.png) [@MarcoRocco](https://discuss.elastic.co/u/MarcoRocco)\
**Post date:** [August 12, 2020, 7:09am UTC](https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534/3 "2020-08-12T07:09:57Z")

</div>

Yes, I'm looking for a place where the elements of each individual app are hidden, to be more specific I'm looking for a place where dashboard elements are hidden. I've done some digging in the files you described but I haven't had any luck. If You've any other pointers I'd appreciate them.

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [August 12, 2020, 1:51pm UTC](https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534/4 "2020-08-12T13:51:48Z")

</div>

An example would be, if you go `map_embeddable_factory.ts` (in the latest code ~7.8-8.x) you'll see it ultimately returns an instance of `MapEmbeddable` which is located in `map_embeddable.ts`. The `render` method of `MapEmbeddable` returns:

```auto
    render(
      <Provider store={this._store}>
        <I18nContext>
          <MapContainer
            addFilters={this.input.hideFilterActions ? null : this.addFilters}
            renderTooltipContent={this._renderTooltipContent}
          />
        </I18nContext>
      </Provider>,
      this._domNode
    );

```

This is the root of everything returned in embed mode. What's included or not, or hidden, all starts here and will vary app by app.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2020, 1:52pm UTC](https://discuss.elastic.co/t/changing-which-elements-are-hidden-in-embed-mode/244534/5 "2020-09-09T13:52:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
