Label.js 469 B

1234567891011121314151617
  1. MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
  2. MWF.xApplication.process.Xform.Label = MWF.APPLabel = new Class({
  3. Implements: [Events],
  4. Extends: MWF.APP$Module,
  5. _loadUserInterface: function(){
  6. if (this.json.valueType == "text"){
  7. this.node.set("text", this.json.text);
  8. }
  9. if (this.json.valueType == "script"){
  10. var code = this.json.script.code;
  11. if (code){
  12. this.node.set("text", this.form.Macro.exec(code, this));
  13. }
  14. }
  15. }
  16. });