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.ymlView source
- langcode: en
- status: true
- dependencies:
- enforced:
- module:
- - yamlform_examples
- uid: null
- template: false
- id: example_elements_masks
- title: 'Example: Elements: Input Masks'
- description: 'Examples of elements with <a href="https://github.com/RobinHerbots/jquery.inputmask">input masks</a>.'
- elements: |
- masks:
- '#type': details
- '#title': 'Simple masks'
- '#open': true
- phone:
- '#type': textfield
- '#title': 'Phone'
- '#input_mask': '(999) 999-9999'
- zip:
- '#type': textfield
- '#title': 'Zip code'
- '#input_mask': '99999[-9999]'
- ssn:
- '#type': textfield
- '#title': 'SSN'
- '#input_mask': '999-99-9999'
- license_plate:
- '#type': textfield
- '#title': 'License plate'
- '#input_mask': '[9-]AAA-999'
- aliases:
- '#type': details
- '#title': 'Aliases'
- '#open': true
- email:
- '#type': textfield
- '#title': 'Email'
- '#input_mask': "'alias': 'email'"
- date:
- '#type': textfield
- '#title': 'Date (mm/dd/yyyy)'
- '#input_mask': "'alias': 'mm/dd/yyyy'"
- currency:
- '#type': textfield
- '#title': 'Currency'
- '#input_mask': "'alias': 'currency'"
- '#attributes':
- 'style': 'text-align: right'
- numeric:
- '#type': textfield
- '#title': 'Numeric'
- '#input_mask': "'alias': 'numeric', 'groupSeparator': ',', 'autoGroup': true, 'digits': 2, 'digitsOptional': false, 'prefix': '$ ', 'placeholder': '0'"
- '#attributes':
- 'style': 'text-align: right'
- percentage:
- '#type': textfield
- '#title': 'Percentage (default)'
- '#input_mask': "'alias': 'percentage'"
- '#attributes':
- 'style': 'text-align: right'
- ip:
- '#type': textfield
- '#title': 'IP address'
- '#input_mask': "'alias': 'ip'"
- mac:
- '#type': textfield
- '#title': 'MAC addresses'
- '#input_mask': "'alias': 'mac'"
- vin:
- '#type': textfield
- '#title': 'VIN (Vehicle identification number)'
- '#input_mask': "'alias': 'vin'"
- css: ''
- javascript: ''
- settings:
- page: true
- page_submit_path: ''
- page_confirm_path: ''
- form_submit_label: ''
- form_submit_attributes: { }
- form_exception_message: ''
- form_closed_message: ''
- form_confidential: false
- form_confidential_message: ''
- form_prepopulate: false
- form_prepopulate_source_entity: false
- form_novalidate: false
- form_unsaved: false
- form_disable_back: false
- form_autofocus: false
- form_details_toggle: false
- wizard_progress_bar: true
- wizard_progress_pages: false
- wizard_progress_percentage: false
- wizard_next_button_label: ''
- wizard_next_button_attributes: { }
- wizard_prev_button_label: ''
- wizard_prev_button_attributes: { }
- wizard_start_label: ''
- wizard_complete: true
- wizard_complete_label: ''
- preview: 0
- preview_next_button_label: ''
- preview_next_button_attributes: { }
- preview_prev_button_label: ''
- preview_prev_button_attributes: { }
- preview_message: ''
- draft: false
- draft_auto_save: false
- draft_button_label: ''
- draft_button_attributes: { }
- draft_saved_message: ''
- draft_loaded_message: ''
- confirmation_type: page
- confirmation_message: ''
- confirmation_url: ''
- confirmation_attributes: { }
- confirmation_back: true
- confirmation_back_label: ''
- confirmation_back_attributes: { }
- limit_total: null
- limit_total_message: ''
- limit_user: null
- limit_user_message: ''
- entity_limit_total: null
- entity_limit_user: null
- results_disabled: false
- results_disabled_ignore: false
- token_update: false
- access:
- create:
- roles:
- - anonymous
- - authenticated
- users: { }
- view_any:
- roles: { }
- users: { }
- update_any:
- roles: { }
- users: { }
- delete_any:
- roles: { }
- users: { }
- purge_any:
- roles: { }
- users: { }
- view_own:
- roles: { }
- users: { }
- update_own:
- roles: { }
- users: { }
- delete_own:
- roles: { }
- users: { }
- handlers: { }