settings.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. (function($){
  2. /**
  3. * Use this file to register a module helper that
  4. * adds additional logic to the settings form. The
  5. * method 'FLBuilder._registerModuleHelper' accepts
  6. * two parameters, the module slug (same as the folder name)
  7. * and an object containing the helper methods and properties.
  8. */
  9. FLBuilder._registerModuleHelper('pp-highlight-box', {
  10. /**
  11. * The 'rules' property is where you setup
  12. * validation rules that are passed to the jQuery
  13. * validate plugin (http://jqueryvalidation.org).
  14. *
  15. * @property rules
  16. * @type object
  17. */
  18. rules: {
  19. 'box_custom_icon_width': {
  20. number: true,
  21. },
  22. 'box_font_icon_size': {
  23. number: true
  24. },
  25. 'box_font_size': {
  26. number: true
  27. },
  28. 'box_right_padding': {
  29. number: true
  30. },
  31. 'box_left_padding': {
  32. number: true
  33. },
  34. 'box_bottom_padding': {
  35. number: true
  36. },
  37. 'box_top_padding': {
  38. number: true
  39. },
  40. 'box_icon_transition_duration': {
  41. number: true
  42. }
  43. },
  44. });
  45. })(jQuery);