Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.31 KB

kibana-plugin-core-public.chromenavcontrols.md

File metadata and controls

35 lines (24 loc) · 1.31 KB

Home > kibana-plugin-core-public > ChromeNavControls

ChromeNavControls interface

APIs for registering new controls to be displayed in the navigation bar.

Signature:

export interface ChromeNavControls 

Example

Register a left-side nav control rendered with React.

chrome.navControls.registerLeft({
  mount(targetDomElement) {
    ReactDOM.mount(<MyControl />, targetDomElement);
    return () => ReactDOM.unmountComponentAtNode(targetDomElement);
  }
})

Methods

Method Description
registerCenter(navControl) Register a nav control to be presented on the top-center side of the chrome header.
registerLeft(navControl) Register a nav control to be presented on the bottom-left side of the chrome header.
registerRight(navControl) Register a nav control to be presented on the top-right side of the chrome header.