Stores custom menu actions available when the user select one or more datasets, subset group, or subset in the data collection view.
This members property is a list of named tuples with the following attributes:
label: the user-facing name of the action
tooltip: the text that appears when hovering with the mouse over the action
callback: the function to call when the action is triggered
icon: an icon image to use for the layer action
single: whether to show this action only when selecting single layers (default: False)
singleis True whether to only show the action when selecting a dataset
singleis True whether to only show the action when selecting a subset group
singleis True whether to only show the action when selecting a subset
The callback function is called with two arguments. If
singleis True, the first argument is the selected layer, otherwise it is the list of selected layers. The second argument is the ~glue.core.data_collection.DataCollection object.
__call__(self, label[, callback, tooltip, …])
This is provided so that registry instances can be used as decorators.
__call__(self, label, callback=None, tooltip=None, icon=None, single=False, data=False, subset_group=False, subset=False)¶
This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function