show property
void Function(GraphObject, Diagram, Tool)?
get
show
Gets or sets the function to call when an HTMLInfo is to be shown, such as when used as the GraphObject#contextMenu or Diagram#toolTip or TextBlock#textEditor.
If this is called by:
- ContextMenuTool#showContextMenu, the first argument is the GraphObject for which the context menu is being shown, or null for the diagram background.
- ToolManager#showToolTip, the first argument is the GraphObject for which the tooltip is being shown, or null for the diagram background.
- TextEditingTool#doActivate, the first argument is the TextBlock for which the text editor is being shown.
If you need access to any bound data for the first argument, if it is non-null, you can get it via:
obj.part.data
and then you can look at any of the properties you have put on that data.
When used as a context menu, typically shown elements, such as buttons, should call
diagram.currentTool.stopTool();
when their action is completed.
Implementation
void Function(
_i3.GraphObject,
_i3.Diagram,
_i3.Tool,
)? get show => (
_i3.GraphObject p0,
_i3.Diagram p1,
_i3.Tool p2,
) =>
_i4.callMethod(
_i4.getProperty(
this,
'show',
),
r'call',
[
this,
p0,
p1,
p2,
],
);
set
show
(void value(GraphObject, Diagram, Tool)?)
Implementation
set show(
void Function(
_i3.GraphObject,
_i3.Diagram,
_i3.Tool,
)? value) {
_i4.setProperty(
this,
'show',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}