You are here

yamlform.yamlform.example_elements_masks.yml in YAML Form 8

modules/yamlform_examples/config/install/yamlform.yamlform.example_elements_masks.yml

File

modules/yamlform_examples/config/install/yamlform.yamlform.example_elements_masks.yml
View source
  1. langcode: en
  2. status: true
  3. dependencies:
  4. enforced:
  5. module:
  6. - yamlform_examples
  7. uid: null
  8. template: false
  9. id: example_elements_masks
  10. title: 'Example: Elements: Input Masks'
  11. description: 'Examples of elements with <a href="https://github.com/RobinHerbots/jquery.inputmask">input masks</a>.'
  12. elements: |
  13. masks:
  14. '#type': details
  15. '#title': 'Simple masks'
  16. '#open': true
  17. phone:
  18. '#type': textfield
  19. '#title': 'Phone'
  20. '#input_mask': '(999) 999-9999'
  21. zip:
  22. '#type': textfield
  23. '#title': 'Zip code'
  24. '#input_mask': '99999[-9999]'
  25. ssn:
  26. '#type': textfield
  27. '#title': 'SSN'
  28. '#input_mask': '999-99-9999'
  29. license_plate:
  30. '#type': textfield
  31. '#title': 'License plate'
  32. '#input_mask': '[9-]AAA-999'
  33. aliases:
  34. '#type': details
  35. '#title': 'Aliases'
  36. '#open': true
  37. email:
  38. '#type': textfield
  39. '#title': 'Email'
  40. '#input_mask': "'alias': 'email'"
  41. date:
  42. '#type': textfield
  43. '#title': 'Date (mm/dd/yyyy)'
  44. '#input_mask': "'alias': 'mm/dd/yyyy'"
  45. currency:
  46. '#type': textfield
  47. '#title': 'Currency'
  48. '#input_mask': "'alias': 'currency'"
  49. '#attributes':
  50. 'style': 'text-align: right'
  51. numeric:
  52. '#type': textfield
  53. '#title': 'Numeric'
  54. '#input_mask': "'alias': 'numeric', 'groupSeparator': ',', 'autoGroup': true, 'digits': 2, 'digitsOptional': false, 'prefix': '$ ', 'placeholder': '0'"
  55. '#attributes':
  56. 'style': 'text-align: right'
  57. percentage:
  58. '#type': textfield
  59. '#title': 'Percentage (default)'
  60. '#input_mask': "'alias': 'percentage'"
  61. '#attributes':
  62. 'style': 'text-align: right'
  63. ip:
  64. '#type': textfield
  65. '#title': 'IP address'
  66. '#input_mask': "'alias': 'ip'"
  67. mac:
  68. '#type': textfield
  69. '#title': 'MAC addresses'
  70. '#input_mask': "'alias': 'mac'"
  71. vin:
  72. '#type': textfield
  73. '#title': 'VIN (Vehicle identification number)'
  74. '#input_mask': "'alias': 'vin'"
  75. css: ''
  76. javascript: ''
  77. settings:
  78. page: true
  79. page_submit_path: ''
  80. page_confirm_path: ''
  81. form_submit_label: ''
  82. form_submit_attributes: { }
  83. form_exception_message: ''
  84. form_closed_message: ''
  85. form_confidential: false
  86. form_confidential_message: ''
  87. form_prepopulate: false
  88. form_prepopulate_source_entity: false
  89. form_novalidate: false
  90. form_unsaved: false
  91. form_disable_back: false
  92. form_autofocus: false
  93. form_details_toggle: false
  94. wizard_progress_bar: true
  95. wizard_progress_pages: false
  96. wizard_progress_percentage: false
  97. wizard_next_button_label: ''
  98. wizard_next_button_attributes: { }
  99. wizard_prev_button_label: ''
  100. wizard_prev_button_attributes: { }
  101. wizard_start_label: ''
  102. wizard_complete: true
  103. wizard_complete_label: ''
  104. preview: 0
  105. preview_next_button_label: ''
  106. preview_next_button_attributes: { }
  107. preview_prev_button_label: ''
  108. preview_prev_button_attributes: { }
  109. preview_message: ''
  110. draft: false
  111. draft_auto_save: false
  112. draft_button_label: ''
  113. draft_button_attributes: { }
  114. draft_saved_message: ''
  115. draft_loaded_message: ''
  116. confirmation_type: page
  117. confirmation_message: ''
  118. confirmation_url: ''
  119. confirmation_attributes: { }
  120. confirmation_back: true
  121. confirmation_back_label: ''
  122. confirmation_back_attributes: { }
  123. limit_total: null
  124. limit_total_message: ''
  125. limit_user: null
  126. limit_user_message: ''
  127. entity_limit_total: null
  128. entity_limit_user: null
  129. results_disabled: false
  130. results_disabled_ignore: false
  131. token_update: false
  132. access:
  133. create:
  134. roles:
  135. - anonymous
  136. - authenticated
  137. users: { }
  138. view_any:
  139. roles: { }
  140. users: { }
  141. update_any:
  142. roles: { }
  143. users: { }
  144. delete_any:
  145. roles: { }
  146. users: { }
  147. purge_any:
  148. roles: { }
  149. users: { }
  150. view_own:
  151. roles: { }
  152. users: { }
  153. update_own:
  154. roles: { }
  155. users: { }
  156. delete_own:
  157. roles: { }
  158. users: { }
  159. handlers: { }