feat(plugins): legend tabs (MIN-231)
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',
]);
Closes MIN-231