You are here

yamlform_test.example_elements.yml in YAML Form 8

tests/modules/yamlform_test/includes/yamlform_test.example_elements.yml

File

tests/modules/yamlform_test/includes/yamlform_test.example_elements.yml
View source
  1. item:
  2. '#markup': '{markup}'
  3. '#field_prefix': '{field_prefix}'
  4. '#field_suffix': '{field_suffix}'
  5. number:
  6. '#min': 0
  7. '#max': 10
  8. '#step': 1
  9. range:
  10. '#min': 0
  11. '#max': 100
  12. '#step': 1
  13. '#range__output': true
  14. '#range__output_prefix': '$'
  15. '#range__output_suffix': '.00'
  16. entity_autocomplete:
  17. '#target_type': 'user'
  18. '#selection_handler': 'default:user'
  19. '#selection_settings':
  20. include_anonymous: true
  21. language_select:
  22. '#languages': 3
  23. yamlform_autocomplete:
  24. '#autocomplete_items': country_names
  25. yamlform_codemirror:
  26. '#mode': yaml
  27. yamlform_entity_select:
  28. '#target_type': 'user'
  29. '#selection_handler': 'default:user'
  30. '#selection_settings':
  31. include_anonymous: true
  32. yamlform_entity_checkboxes:
  33. '#target_type': 'user'
  34. '#selection_handler': 'default:user'
  35. '#selection_settings':
  36. include_anonymous: true
  37. yamlform_entity_radios:
  38. '#target_type': 'user'
  39. '#selection_handler': 'default:user'
  40. '#selection_settings':
  41. include_anonymous: true
  42. yamlform_likert:
  43. '#questions':
  44. q1: 'Please answer question 1?'
  45. q2: 'How about now answering question 2?'
  46. q3: 'Finally, here is question 3?'
  47. '#answers':
  48. 1: 1
  49. 2: 2
  50. 3: 3
  51. 4: 4
  52. 5: 5
  53. yamlform_message:
  54. '#message_type': 'warning'
  55. '#message_message': 'This is a <strong>warning</strong> message.'