Dear Blockly community,
I have a block that create a matrix of éléments from fields, and today i want to modify it so it has input instead of fields so i can put any types of block.
So this is the code of the matrix when i add a column:
addColumnFields: function() {
for (var j = 0; j < this.dimY; j++) {
this.line[j].appendField(new Blockly.Field(), "element_" + j +"_"+ this.dimX);
}
},
I also tried to change it into input but it didn't succeed:
addColumnFields: function() {
for (var j = 0; j < this.dimY; j++) {
this.line[j] = this.appendValueInput("element_" + j +"_"+ i);
}
},
Do you think it's possible ?
Any help at all would be greatly appreciated.
Thank you.