I'm trying to add a shadow block in a dynamically created toolbox category.
I have plenty of shadow blocks in the toolbox categories that are not dynamic,
I have plenty of dynamic toolbox categories without shadow blocks that work fine
but when I add a block with a nested shadow block in the dynamic category I get the error
Ignoring unknown tag: shadow
here's a snippit of my code:
const callBlock = Blockly.utils.xml.createElement("block");
callBlock.setAttribute("type", "pi_call"); /* my custom block */
/* ... code cut for conciseness */
const value = Blockly.utils.xml.createElement("value");
const shadowBlock = Blockly.utils.xml.createElement("shadow");
Is it possible to add shadow blocks in dynamic categories or am I just doing it wrong?
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/3096cb54-5c64-4fc6-a406-67bfe947a6d0n%40googlegroups.com.