You are here

toc_js.schema.yml in Toc.js 2.0.x

Same filename and directory in other branches
  1. 8 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. classes:
  27. type: string
  28. label: 'Custom css classes.'
  29. back_to_top:
  30. type: integer
  31. label: 'Add back to top link on heading'
  32. back_to_top_label:
  33. type: label
  34. label: 'Back to top link label'
  35. smooth_scrolling:
  36. type: integer
  37. label: 'Enable or disable smooth scrolling on click'
  38. scroll_to_offset:
  39. type: string
  40. label: 'Offset to trigger with smooth scrolling enabled'
  41. highlight_on_scroll:
  42. type: integer
  43. label: 'Add class to heading that is currently in focus'
  44. highlight_offset:
  45. type: string
  46. label: 'Offset to trigger the next headline'
  47. sticky:
  48. type: integer
  49. label: 'Stick the toc on window scroll'
  50. sticky_offset:
  51. type: string
  52. label: 'The offset to apply when toc is sticky'
  53. sticky_stop:
  54. type: string
  55. label: 'Selector to use as a sticky stop'
  56. sticky_stop_padding:
  57. type: string
  58. label: 'The padding to apply before the sticky stop'
  59. block.settings.toc_js_block:
  60. type: block_settings
  61. label: 'Toc.js block settings'
  62. mapping:
  63. title:
  64. type: label
  65. label: 'Toc title'
  66. selectors:
  67. type: string
  68. label: 'Elements to use as headings'
  69. selectors_minimum:
  70. type: string
  71. label: 'Set a minimum of elements to display the toc'
  72. container:
  73. type: string
  74. label: 'Element to find all selectors in'
  75. prefix:
  76. type: string
  77. label: 'Prefix for anchor tags and class names'
  78. list_type:
  79. type: string
  80. label: 'The HTML list type to use'
  81. classes:
  82. type: string
  83. label: 'Custom css classes.'
  84. back_to_top:
  85. type: integer
  86. label: 'Add back to top link on heading'
  87. back_to_top_label:
  88. type: label
  89. label: 'Back to top link label'
  90. smooth_scrolling:
  91. type: integer
  92. label: 'Enable or disable smooth scrolling on click'
  93. scroll_to_offset:
  94. type: string
  95. label: 'Offset to trigger with smooth scrolling enabled'
  96. highlight_on_scroll:
  97. type: integer
  98. label: 'Add class to heading that is currently in focus'
  99. highlight_offset:
  100. type: string
  101. label: 'Offset to trigger the next headline'
  102. sticky:
  103. type: integer
  104. label: 'Stick the toc on window scroll'
  105. sticky_offset:
  106. type: string
  107. label: 'The offset to apply when toc is sticky'
  108. sticky_stop:
  109. type: string
  110. label: 'Selector to use as a sticky stop'
  111. sticky_stop_padding:
  112. type: string
  113. label: 'The padding to apply before the sticky stop'