# Can I get the $scope.topNavMenu in my plugin?

**URL:** <https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389>\
**Category:** Kibana\
**Created:** [August 21, 2018, 12:45pm UTC](https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389 "2018-08-21T12:45:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [August 21, 2018, 12:45pm UTC](https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389/1 "2018-08-21T12:45:56Z")

</div>

can I get the $scope.topNavMenu in my plugin?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [August 21, 2018, 8:39pm UTC](https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389/2 "2018-08-21T20:39:30Z")

</div>

Yeah, you should be able to get/set it from your plugin. Are you having trouble with this? You can take a look at how the timelion plugin accomplishes this:

> <https://github.com/elastic/kibana/blob/master/src/core_plugins/timelion/public/app.js#L121-L174>

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [August 22, 2018, 1:57am UTC](https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389/3 "2018-08-22T01:57:22Z")

</div>

i wanna make a i18n by hack it, is that possible?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [August 22, 2018, 5:39pm UTC](https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389/4 "2018-08-22T17:39:23Z")

</div>

Hmm, you definitely _could_ accomplish this via a hack plugin by just getting the elements in the top nav and renaming them. But if the selectors ever changed you'd have to update your plugin.

---

<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 19, 2018, 5:43pm UTC](https://discuss.elastic.co/t/can-i-get-the-scope-topnavmenu-in-my-plugin/145389/5 "2018-09-19T17:43:03Z")

</div>

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