# Plugin as navbarExtension

**URL:** <https://discuss.elastic.co/t/plugin-as-navbarextension/84230>\
**Category:** Kibana\
**Created:** [May 2, 2017, 9:37am UTC](https://discuss.elastic.co/t/plugin-as-navbarextension/84230 "2017-05-02T09:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [May 3, 2017, 5:50pm UTC](https://discuss.elastic.co/t/plugin-as-navbarextension/84230/2 "2017-05-03T17:50:23Z")

</div>

I posted this a while ago as a reply to another question, which is a pretty comprehensive guide to creating navbarExtensions: [Dev on Kibana plugin: navbar icon disappear when switching tabs](https://discuss.elastic.co/t/dev-on-kibana-plugin-navbar-icon-disappear-when-switching-tabs/66612). Your code here looks almost exactly the same as what I posted there, so perhaps you already found that ;).

The problem here is with the `appName` in your provider. From that thread:

> You will need to define, at a minimum, an appName (the name of the app to inject into), a unique key, and I'd encourage you to add a label too since it'll display that text then, which can be more user-friendly.

`appName` is actually the name of the app you are trying to inject the button into, not the name of your app. So, for example, if you are trying to add a button to the Discover app, you would use `discover`, as that's the `name` attribute used in the `kbn-top-nav` directive. If you'd like to inject a navbar button into another app, refer to its `kbn-top-nav` use, and set the `appName` in your provider to match the `name` used in the template.

Most of the names are exactly what you would expect them to be. `discover`, `visualize`, `dashboard`, `devtools`... and it's pretty easy to look up by just searching the codebase for the `kbn-top-nav` directive. Just keep in mind that you have to register a nav control for every app you want to put a button in.

---

_[View the full topic](https://discuss.elastic.co/t/plugin-as-navbarextension/84230)._
