Access EuiHeaderBreadcrumbs

How can I access Kibana top navbar EuiHeaderBreadcrumbs from my plugin? I want to put my breadcrumbs there to make back navigation possible.

I meant this navbar

Hey @trex,

Here is how the Discover tab does it. Essentially, you'll want to import chrome, and call chrome.breadcrumbs.set():

import chrome from 'ui/chrome';
chrome.breadcrumbs.set([{
      text: discoverBreadcrumbsTitle,
      href: '#/discover'
    }, { text: savedSearch.title }]);

Here's the source file where I grabbed this from: https://github.com/elastic/kibana/blob/71d9c5a42868d8c96f5500530caea5e983eff82f/src/legacy/core_plugins/kibana/public/discover/controllers/discover.js#L378

1 Like

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