You are here

toc_js.schema.yml in Toc.js 8

Same filename and directory in other branches
  1. 2.0.x config/schema/toc_js.schema.yml
config/schema/toc_js.schema.yml

File

config/schema/toc_js.schema.yml
View source
  1. node.type.*.third_party.toc_js:
  2. type: mapping
  3. label: 'Per-content type tocjs node settings'
  4. mapping:
  5. toc_js_active:
  6. type: integer
  7. label: 'Enable Toc.js for content type'
  8. title:
  9. type: label
  10. label: 'Toc title'
  11. selectors:
  12. type: string
  13. label: 'Elements to use as headings'
  14. selectors_minimum:
  15. type: string
  16. label: 'Set a minimum of elements to display the toc'
  17. container:
  18. type: string
  19. label: 'Element to find all selectors in'
  20. prefix:
  21. type: string
  22. label: 'Prefix for anchor tags and class names'
  23. list_type:
  24. type: string
  25. label: 'The HTML list type to use'
  26. back_to_top:
  27. type: integer
  28. label: 'Add back to top link on heading'
  29. back_to_top_label:
  30. type: label
  31. label: 'Back to top link label'
  32. smooth_scrolling:
  33. type: integer
  34. label: 'Enable or disable smooth scrolling on click'
  35. scroll_to_offset:
  36. type: string
  37. label: 'Offset to trigger with smooth scrolling enabled'
  38. highlight_on_scroll:
  39. type: integer
  40. label: 'Add class to heading that is currently in focus'
  41. highlight_offset:
  42. type: string
  43. label: 'Offset to trigger the next headline'
  44. sticky:
  45. type: integer
  46. label: 'Stick the toc on window scroll'
  47. sticky_offset:
  48. type: string
  49. label: 'The offset to apply when toc is sticky'
  50. sticky_stop:
  51. type: string
  52. label: 'Selector to use as a sticky stop'
  53. sticky_stop_padding:
  54. type: string
  55. label: 'The padding to apply before the sticky stop'
  56. block.settings.toc_js_block:
  57. type: mapping
  58. label: 'Toc.js block settings'
  59. mapping:
  60. title:
  61. type: label
  62. label: 'Toc title'
  63. selectors:
  64. type: string
  65. label: 'Elements to use as headings'
  66. selectors_minimum:
  67. type: string
  68. label: 'Set a minimum of elements to display the toc'
  69. container:
  70. type: string
  71. label: 'Element to find all selectors in'
  72. prefix:
  73. type: string
  74. label: 'Prefix for anchor tags and class names'
  75. list_type:
  76. type: string
  77. label: 'The HTML list type to use'
  78. back_to_top:
  79. type: integer
  80. label: 'Add back to top link on heading'
  81. back_to_top_label:
  82. type: label
  83. label: 'Back to top link label'
  84. smooth_scrolling:
  85. type: integer
  86. label: 'Enable or disable smooth scrolling on click'
  87. scroll_to_offset:
  88. type: string
  89. label: 'Offset to trigger with smooth scrolling enabled'
  90. highlight_on_scroll:
  91. type: integer
  92. label: 'Add class to heading that is currently in focus'
  93. highlight_offset:
  94. type: string
  95. label: 'Offset to trigger the next headline'
  96. sticky:
  97. type: integer
  98. label: 'Stick the toc on window scroll'
  99. sticky_offset:
  100. type: string
  101. label: 'The offset to apply when toc is sticky'
  102. sticky_stop:
  103. type: string
  104. label: 'Selector to use as a sticky stop'
  105. sticky_stop_padding:
  106. type: string
  107. label: 'The padding to apply before the sticky stop'