function OnSelected(event){
var workspaceId = event.workspaceId;
var blockId = event.blockId;
var oldElementId = event.oldElementId; // string
var newElementId = event.newElementId; // string
selectedBlock = newElementId;
}
Most of the parameters are OK, but -
User functions created inside Blockly cannot normally obtain the generated code about next.
let blockCode = Blockly.Lua.blockToCode(workspace.getBlockById(selectedBlock),true);
In most cases, normal generated code is provided as a string in 'blockCode',
The user custom function does not give any value.
is this a bug? Or is this a feature not yet supported? or am i doing something wrong?