basic.yaml 724 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. rules:
  2. name:
  3. pattern: "[A-Z][a-z]+"
  4. min: 3
  5. max: 15
  6. form:
  7. validation: loose
  8. fields:
  9. text:
  10. type: text
  11. label: Text
  12. placeholder: 'Enter your text'
  13. enabled:
  14. type: select
  15. label: Enabled
  16. default: true
  17. data-options@: blueprint_data_option_test
  18. user.name:
  19. type: name
  20. label: Name
  21. default: John
  22. validate:
  23. type: name
  24. user.country:
  25. type: select
  26. label: Enabled
  27. default: fi
  28. data-options@:
  29. - blueprint_data_option_test
  30. - { us: 'United States', fi: 'Finland', po: 'Poland' }
  31. - true
  32. undefined:
  33. type: select
  34. label: Undefined
  35. data-options@: undefined_function