I have a MindMap and would like to add more items there using my script.
Obviously I want the new elements to have the same style as the ones already created - but they turn to be quite ugly (notice the white background of the “Sample Widget”). :-(
The only differences between the “widget” object that was created manually and the one created by script are
style.padding (which I do not think matters - plus I can only set it to 0 or and the mindmap structure, which I cannot provide via API: "message": "\"mindmap\" property is not allowed"
Any suggestions?
Page 1 / 1
And if you remove the background color ?
And if you remove the background color ?
How do I remove the background color? You mean do not supply that parameter at all when creating a new widget?
And if you remove the background color ?
Thank you for your advice! I do not understand how it worked - but it worked. I removed the “backgoundColor” element completely:
but now all the sudden the new widget has a regular-looking background!
Still it would be great for Miro developers to fix API & documentation
YES :)
And now I have another challenge: the items I create via script stay glued to their position on the board no matter if I drag their parent node. The nodes created via Miro editor move along with the parent node, which is what expected.
Also the “align child nodes” feature that is available for the “native” MindMap elements does not seem to affect the widgets I add
and this function is not even available for the nodes I create via API. :-(
Any idea how to create “true” MindMap nodes?
I do not have any true knowledge on progamming / coding.. but i’m a good trouble shooter / problme solver and I do understand how it’s all working..
So.. my first thought :
in your transcript, did you put a fix position.. or did you create one with link to the nod parents unfix. ex. each new nod is created at the left of the parents and is only linked to the previous node or the next one.. not on your board direclty.. (is it clear?? ) In my head.. it is :P
And if you remove the background color ?
Thank you for your advice! I do not understand how it worked - but it worked. I removed the “backgoundColor” element completely:
in your transcript, did you put a fix position.. or did you create one with link to the nod parents unfix. ex. each new nod is created at the left of the parents and is only linked to the previous node or the next one.. not on your board direclty.. (is it clear?? ) In my head.. it is :P
It seems that through API I cannot just create a widget, attached to another widget - I have to create an “independent” widget first and then link it to its parent using “line” item.
@Andriy Zhylenko
Unfortunately - The API and SDK do not support mind map widget/item types.
@Andriy Zhylenko
Unfortunately - The API and SDK do not support mind map widget/item types.
Thanks!
Miro team - do you have specific plans to fix it in API v2?
@Andriy Zhylenko In developer documentation site you’ll find “Roadmap” in the upper right.
Look under released and in progress and if its not there look to see if its requested. If it isnt create a request card. If it requested, up vote it.
Finally I can see that this feature is “in progress” status! Any idea when is the planned release date?
Hi @truemetal,
Thank you for reaching out.
As you mention, CRUD support for the MindMap board item through the Miro Web SDK is in progress. Unfortunately, we cannot commit to a planned release date yet.
I used API v1, where it was still possible. But AFAIK now they turned it off. The good news is that supposedly support for Mindmaps in API v2 is coming sometime in the next year
Hey @Andriy Zhylenko, that’s right! We’re working on adding support for Mindmaps in our V2 REST API in the coming months (and likely sooner for the Web SDK)!
We’ll be sure to update this thread once we have more to share.