Currency.js 1.2 KB

1234567891011121314151617181920212223242526
  1. MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
  2. MWF.xDesktop.requireApp("process.FormDesigner", "Module.Textfield", null, false);
  3. MWF.xApplication.process.FormDesigner.Module.Currency = MWF.FCCurrency = new Class({
  4. Extends: MWF.FCTextfield,
  5. Implements: [Options, Events],
  6. options: {
  7. "style": "default",
  8. "type": "currency",
  9. "path": "../x_component_process_FormDesigner/Module/Currency/",
  10. "propertyPath": "../x_component_process_FormDesigner/Module/Currency/currency.html"
  11. },
  12. clearTemplateStyles: function(styles){
  13. if (styles){
  14. if (styles.styles) this.removeStyles(styles.styles, "styles");
  15. if (styles.inputStyles) this.removeStyles(styles.inputStyles, "inputStyles");
  16. if (styles.symbolStyles) this.removeStyles(styles.symbolStyles, "symbolStyles");
  17. if (styles.properties) this.removeStyles(styles.properties, "properties");
  18. }
  19. },
  20. setTemplateStyles: function(styles){
  21. if (styles.styles) this.copyStyles(styles.styles, "styles");
  22. if (styles.inputStyles) this.copyStyles(styles.inputStyles, "inputStyles");
  23. if (styles.symbolStyles) this.copyStyles(styles.symbolStyles, "symbolStyles");
  24. if (styles.properties) this.copyStyles(styles.properties, "properties");
  25. },
  26. });