testfields.v14.ts 876 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // ---------------------------------------------------------------------------------------------------------------------
  2. // TESTS: Repeating Groups Of Fields in Single Mode ( 1 -> N arrays of containers for multiple fields )
  3. // ---------------------------------------------------------------------------------------------------------------------
  4. const model = {
  5. repeating: [
  6. {
  7. a: 1,
  8. b: 2,
  9. },
  10. {
  11. a: 3,
  12. b: 4,
  13. }
  14. ],
  15. standard: 'YABBA DABBA DOOOOOO'
  16. };
  17. const meta = {
  18. repeating: {
  19. label: 'Repeating Group',
  20. seed: { class: 'short-field' },
  21. minRepeat: 1,
  22. maxRepeat: 5,
  23. initialRepeat: 3,
  24. showAddControl: true,
  25. showDeleteControl: true,
  26. display: 'ALL', // ALL or SINGLE,
  27. primaryField: 'a',
  28. meta: [
  29. {
  30. a: { label: 'Field A' },
  31. b: { label: 'Field B', type: 'select', options: [1, 2, 3, 4, 5] }
  32. }
  33. ]
  34. }
  35. };
  36. export { model, meta };