-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace kbn_top_nav with a new React component #39981
Comments
Pinging @elastic/kibana-app-arch |
Note that work is already underway in ML to replace the Angular based top nav with a React component - see #39325. |
@lukeelmers The issue is actually not closed yet. We still need to do the following tasks:
I'll keep this issue open to track these tasks. |
@lizozom Is there a hard time limit prior to 8.0 for this? I probably won't get around to do this for a few more months. |
@flash1293 I would really like to push this in 7.4 |
Replace the
kbn_top_nav
angular component with a react component, in a manner that's as backwards compatible as possible, but still allow apps to use the new class directly as they move to React.Apps using kbn-top-nav
Cleanup
Configuration
kbn_top_nav
receives it's configuration via theconfig
attribute. At the moment, this format won't change, to increase backwards compatibility. The only item that will be deprecated istemplate
.This is an example of a menu item configuration:
Currently
kbn_top_nav
supports the following options:Template deprecation
The new
TopNavMenu
won't be responsible for rendering the actions. Rather, those will be rendered by therun
method, and convenience methods (showPanel, showModal) may be used.Therefore, any existing menus that provide a template for
kbn_top_nav
to render, need to be migrated to userun
functions instead.Transcluded items
Previously, top nav was extended (most frequently with search bar \ query bar \ filter bar \ date picker) by transcluding those directives inside the
kbn-top-nav
directive.Moving to React, the new
TopNavMenu
won't support adding custom views into it.Instead, it supports rendering search bar \ query bar \ filter bar \ date picker, by passing their options directly to TopNavMenu (or to the reactDirective, in case of Angular code).
The text was updated successfully, but these errors were encountered: