EformWrapperInfotron

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 5. about 5 years by slim
  2. 4. about 5 years by slim
  3. 3. about 5 years by slim
  4. 2. about 5 years by slim
  5. 1. over 5 years by xexamedes
 

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

  • 43.html
  • +evdb.html
  • evdb.html

How does it work?

Source


BLUEPRINT(
"~015C5A2D5E2549459797EE9FD3A383AC1F",
[
 ["value_in", "onValue", 10]
],
[
 "eform"
],
function (Class) 
{
    Class.prototype._onInit = function(props)
    {
      this._fmt = props["value_format"];
      this._key = props["key"];
      this._STR_REGEX = new RegExp("%s");
    };

    Class.prototype.onValue = function(msg)
    {
	var ef = {};

	if (this._fmt) {
	    ef[this._key] = this._fmt.replace(this._STR_REGEX, msg.toString());
	} else {
	    ef[this._key] = msg;
	}

	this.postMessage("eform", ef);
    };

}, "Eform Wrapper");