You are here

yamlform_test.test_element_flexbox.yml in YAML Form 8

tests/modules/yamlform_test/includes/yamlform_test.test_element_flexbox.yml

File

tests/modules/yamlform_test/includes/yamlform_test.test_element_flexbox.yml
View source
  1. flexbox_properites:
  2. '#type': flexbox
  3. properties_number:
  4. '#type': number
  5. '#title': 'currency'
  6. '#description': 'A description'
  7. '#field_prefix': '$'
  8. '#field_suffix': '.00'
  9. properties_textfield:
  10. '#type': textfield
  11. '#title': 'textfield'
  12. '#description': 'A description'
  13. flexbox_checkboxes:
  14. '#type': flexbox
  15. checkboxes_textfield:
  16. '#type': textfield
  17. '#title': 'textfield'
  18. checkboxes_horizontal:
  19. '#type': checkboxes
  20. '#title': 'checkboxes_horizontal'
  21. '#options_display': side_by_side
  22. '#options':
  23. one: One
  24. two: Two
  25. three: Three
  26. flexbox_toggle:
  27. '#type': flexbox
  28. '#align_items': flex-end
  29. toggle:
  30. '#type': toggle
  31. '#title': 'toggle'
  32. toggle_textfield:
  33. '#type': textfield
  34. '#title': 'textfield'
  35. '#flex': 5
  36. toggle_rating:
  37. '#type': rating
  38. '#title': 'rating'
  39. flexbox_date:
  40. '#type': flexbox
  41. '#align_items': center
  42. date:
  43. '#type': date
  44. '#title': 'date'
  45. '#format': 'l, F j, Y'
  46. '#default_value': '2009-08-18'
  47. '#flex': 4
  48. to:
  49. '#markup': '- to - '
  50. datetime:
  51. '#type': datetime
  52. '#title': 'datetime'
  53. '#format': 'l, F j, Y - g:i A'
  54. '#default_value': '2009-08-18T01:00:00-05:00'
  55. '#flex': 4