kibana/docs/development/core/public/kibana-plugin-public.chromestart.setbrand.md
Josh Dover 5941436e1b
Remove final legacy dependencies from Header UI (#38175)
* Remove final legacy dependencies from Header UI

* Address @eliperelman comments

* Move files for x-pack move
2019-06-20 15:57:02 -05:00

995 B

Home > kibana-plugin-public > ChromeStart > setBrand

ChromeStart.setBrand() method

Set the brand configuration.

Signature:

setBrand(brand: ChromeBrand): void;

Parameters

Parameter Type Description
brand ChromeBrand

Returns:

void

Remarks

Normally the logo property will be rendered as the CSS background for the home link in the chrome navigation, but when the page is rendered in a small window the smallLogo will be used and rendered at about 45px wide.

Example

chrome.setBrand({
  logo: 'url(/plugins/app/logo.png) center no-repeat'
  smallLogo: 'url(/plugins/app/logo-small.png) center no-repeat'
})