javascript - Blockly text input blur -
i have small problem blockly.
i need call event (for example alert('hello world') ) when blurs text input.
i used blockly.addchangelistener, function not called when create blur event on text input.
you can create onchange event input block. this:
onchange: function(event) { var text = blockly.javascript.valuetocode(this, 'textbox', blockly.c.order_atomic); if (text == "") { alert("hello world"); } else { alert(text); } } where this makes reference input block , textbox makes reference name have set yours input box.
Comments
Post a Comment