Skip to main content

SettingsTreeNodeDrag

type SettingsTreeNodeDrag =
| {
type: "topic";
topicName: string;
}
| {
type: "message-path";
value: string;
isLeaf?: boolean;
};

Drag-and-drop metadata for a settings tree node. Allows the node to be dragged onto panels that accept topics or expressions.

Union Members​

Type Literal​

{
type: "topic";
topicName: string;
}

type​

type: "topic";

topicName​

topicName: string;

Topic name without quotes, e.g. /my_topic.


Type Literal​

{
type: "message-path";
value: string;
isLeaf?: boolean;
}

type​

type: "message-path";

value​

value: string;

Full expression, e.g. /my_topic.field or "/topic with spaces".field.

isLeaf?​

optional isLeaf?: boolean;

True if the path points to a primitive value. Required by panels like Plot.