pivotick / GraphUI / HeaderMapEntry
Interface: HeaderMapEntry<T>
Defined in: interfaces/GraphUI.ts:813
Mapping functions to extract a node/edge's title and subtitle.
Example for node. Replace with edge for edge mapping.
Default
ts
title = node.getData().label || "Could not resolve title"
subtitle= node.getData().description || "Could not resolve subtitle"Remarks
Synchronous only. These feed the header's auto-fitting title slot and resolveNodeByName (node search, [[node]] note autocomplete), all of which need the text now. To show fetched detail, use an async MainHeader.render or PropertiesPanel.nodePropertiesMap instead.
Type Parameters
T
Properties
subtitle
subtitle:
string| (element) =>string
Defined in: interfaces/GraphUI.ts:815
title
title:
string| (element) =>string
Defined in: interfaces/GraphUI.ts:814