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 message paths.

Type Declaration

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

type

type: "topic";

topicName

topicName: string;

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

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

type

type: "message-path";

value

value: string;

Full message path, 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.