Our business uses a simple in-house kibana plugin to present dashboard links in the sidebar. Here is an image illustrating how this might look:
To get this to work, we have an custom AppCategory
in our plugin:
const WIDGET_CORP_CATEGORY: AppCategory = {
id: 'widgetcorp',
label: i18n.translate('core.ui.kibanaNavList.label', {
defaultMessage: 'Widget Corp. Category',
}),
order: 500,
};
And then, when calling core.application.register():
core.application.register({
...
category: WIDGET_CORP_CATEGORY,
...
});
This works, but I have not been able to figure out how to add a custom icon for the AppCategory
. AppCategory accepts an optional euiIconType field, but as best I can tell, this must be a string from a special wired-in list: iconKibana
, iconManagement
, etc. I've tried grepping through the kibana source for fragments of the svgs that correspond to these (e.g. M16 21a5 5
), and they all come from this file:
x-pack/build/plugin/kibana/x-pack/plugins/canvas/shareable_runtime/build/kbn_canvas.js
Unfortunately, this file is minified and is a dead end.
I would like to be able to add my own svg icon for the AppCategory
that our plugin creates. Is this supported, and if so, how can it be accomplished? Thanks.
Editing to include version information: We use Elasticsearch and Kibana version 7.12.1.