loadPluginCss() function

loadPluginCss() function

Use this to load css for a Grafana plugin by specifying a PluginCssOptions containing styling for the dark and the light theme.

Signature

  1. export declare function loadPluginCss(options: PluginCssOptions): Promise<any>;

Import

  1. import { loadPluginCss } from '@grafana/runtime';

Parameters

ParameterTypeDescription
optionsPluginCssOptionsplugin styling for light and dark theme.

Returns:

Promise<any>