Button.js 624 B

1234567891011121314151617181920
  1. MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
  2. MWF.xApplication.process.Xform.Button = MWF.APPButton = new Class({
  3. Implements: [Events],
  4. Extends: MWF.APP$Module,
  5. iconStyle: "personfieldIcon",
  6. _loadUserInterface: function(){
  7. var button = new Element("button");
  8. button.inject(this.node, "after");
  9. this.node.destroy();
  10. this.node = button;
  11. this.node.set({
  12. "id": this.json.id,
  13. "text": this.json.name || this.json.id,
  14. "styles": this.form.css.buttonStyles,
  15. "MWFType": this.json.type
  16. });
  17. }
  18. });