EformRouterInfotron

For information on what an EForm is please read this

Sample Declaration

<div id=""
     impl=""
     properties=""
     script=""></div>

Input Terminals

Output Terminals

Properties

Demos that use it

How does it work?

Source


BLUEPRINT(
"~01364935de87c611db85c86df924e57e42",
[
 ["eform_in", "onEform", 10]
],
[
 "out1",
 "out2",
 "out3",
 "out4"
],
function(Class)
{
    Class.prototype.onEform = function(msg)
    {
        if (this._match1) {
            this.postMessage("out1", msg[this._match1] || this._default_val);
        }

        if( this._match2) {
            this.postMessage("out2", msg[this._match2] || this._default_val);
        }

        if (this._match3) {
            this.postMessage("out3", msg[this._match3] || this._default_val);
        }

        if (this._match4) {
            this.postMessage("out4", msg[this._match4] || this._default_val);
        }

    };

    Class.prototype._onInit = function(props)
    {
      this._match1 = props["out1_match_key"];
      this._match2 = props["out2_match_key"];
      this._match3 = props["out3_match_key"];
      this._match4 = props["out4_match_key"];
      this._default_val = props["default_value"];
    }
}, "List Router");

No comments yet. post a comment >