Hi all,
I'd like to know if it's possible to disable editing on a specific input in a block, instead of disabling the block whole using
this.setEditable(false)
const input = this.appendStatementInput('DEF')
input.appendField('function')
input.connection?.setShadowState({
type: 'function_call' // preview of the block (similar to mit's scratch!)
})
The purpose here of the non-editable statement input is that it only holds a shadow-state of the function call preview, similar to how it's done in mit's scratch:

and use the next statements below the block as the actual function body :D