The editor supports setting custom data regions for node elements
Y
Yao Zhao
When integrating via react or javascript, I want to dynamically obtain data based on the clicked node in the floating prompt.
For example, click on a MySQL node, hoping to get the following data in the callback
{
“type”: “MySQL”,
“id”: “cdb-o5hmcm22",
“metrics”: ["cpu_usage”, “memory_usage"]
}
Currently, it is possible to distinguish clicked nodes by node name, but only some simple structured data can be encoded in an agreed format, such as naming the node `mysql-cdb-o5hmcm22', but in scenarios with more complex data structures, it would be impossible to rely on string coding.
I want to be able to directly place structured data on the node in the form of json format (or dynamic field form) when configuring the node in the editor.
iCraftEditor
Great suggestion, scheduled for the next edition
iCraftEditor
Great suggestion, scheduled for the next edition