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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -