Skip to content
Snippets Groups Projects

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

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading