Skip to content

feat(plugins): legend tabs (MIN-231)

mateusz-winiarczyk requested to merge MIN-231-legend-tabs into development

Legend

Set Legend

To set a legend for a specific plugin, plugins can use the setLegend method in legend object returned by window.minerva.plugins.registerPlugin. This method takes one argument:

  • legend: an array containing image urls
Example of setLegend method usage:
const {
  element,
  legend: { setLegend },
} = minerva.plugins.registerPlugin({
  pluginName,
  pluginVersion,
  pluginUrl,
});

setLegend([
  'https://lux1.atcomp.pl//minerva/resources/images/legend_d.png',
  'https://lux1.atcomp.pl//minerva/resources/images/legend_a.png',
  'https://lux1.atcomp.pl//minerva/resources/images/legend_b.png',
]);

plugin-tabs

Closes MIN-231

Merge request reports

Loading