EformWrapperInfotron
History Key
- New content
Removed content
Recent Versions
Choose two versions to compare, or click the link to view it.
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
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");