optiontree-custom-options.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "type": "optiontree",
  3. "tree": {
  4. "selectors": {
  5. "sport": {
  6. "schema": {
  7. "type": "string"
  8. },
  9. "options": {
  10. "type": "select",
  11. "noneLabel": "Pick a Sport..."
  12. }
  13. },
  14. "team": {
  15. "schema": {
  16. "type": "string"
  17. },
  18. "options": {
  19. "type": "select",
  20. "noneLabel": "Pick a Team..."
  21. }
  22. },
  23. "player": {
  24. "schema": {
  25. "type": "string"
  26. },
  27. "options": {
  28. "type": "select",
  29. "noneLabel": "Pick a Player..."
  30. }
  31. }
  32. },
  33. "order": ["sport", "team", "player"],
  34. "data": [{
  35. "value": 23,
  36. "attributes": {
  37. "sport": "Basketball",
  38. "team": "Chicago Bulls",
  39. "player": "Michael Jordan"
  40. }
  41. }, {
  42. "value": 33,
  43. "attributes": {
  44. "sport": "Basketball",
  45. "team": "Chicago Bulls",
  46. "player": "Scotty Pippen"
  47. }
  48. }, {
  49. "value": 4,
  50. "attributes": {
  51. "sport": "Football",
  52. "team": "Green Bay Packers",
  53. "player": "Brett Favre"
  54. }
  55. }, {
  56. "value": 19,
  57. "attributes": {
  58. "sport": "Baseball",
  59. "team": "Milwaukee Brewers",
  60. "player": "Robin Yount"
  61. }
  62. }, {
  63. "value": 99,
  64. "attributes": {
  65. "sport": "Hockey",
  66. "player": "Wayne Gretzky"
  67. }
  68. }],
  69. "horizontal": true
  70. }
  71. }