I am searching for a method from blockly which will take the user input text given from a modal popup into the block.
Can you help me with this. thanks
I am searching for a method from blockly which will take the user input text given from a modal popup into the block.
Can you help me with this. thanks
You will have to add a new label field into the block programatically with the entered text as the value.
If you have the block and the entered text references, then you can use the below function -
addTextIntoBlock = function(block,text) {
block.inputList[0].appendField(new Blockly.FieldLabel(text));
}