You are here

gridstack.schema.yml in GridStack 8

Same filename and directory in other branches
  1. 8.2 config/schema/gridstack.schema.yml
config/schema/gridstack.schema.yml

File

config/schema/gridstack.schema.yml
View source
  1. # Schema for the configuration files of the GridStack module.
  2. gridstack.settings:
  3. type: config_object
  4. label: 'GridStack settings'
  5. mapping:
  6. customized:
  7. type: boolean
  8. label: 'Use customized GridStack library'
  9. framework:
  10. type: string
  11. label: 'Grid framework'
  12. library:
  13. type: string
  14. label: 'Grid library'
  15. # The grids.
  16. gridstack_node:
  17. type: mapping
  18. label: 'Grid nodes'
  19. mapping:
  20. x:
  21. type: integer
  22. label: X
  23. y:
  24. type: integer
  25. label: Y
  26. width:
  27. type: integer
  28. label: Width
  29. height:
  30. type: integer
  31. label: Height
  32. image_style:
  33. type: string
  34. label: 'Image style'
  35. gridstack_grid:
  36. type: sequence
  37. label: Grids
  38. sequence:
  39. - type: mapping
  40. mapping:
  41. node:
  42. type: gridstack_node
  43. label: Nodes
  44. nested:
  45. type: string
  46. label: Nested
  47. gridstack_json:
  48. type: mapping
  49. label: JSON
  50. mapping:
  51. grids:
  52. type: sequence
  53. label: Grids
  54. sequence:
  55. - type: string
  56. settings:
  57. type: string
  58. label: Settings
  59. breakpoints:
  60. type: string
  61. label: Breakpoints
  62. gridstack_breakpoint:
  63. type: mapping
  64. mapping:
  65. breakpoint:
  66. type: string
  67. label: Breakpoint
  68. column:
  69. type: integer
  70. label: Column
  71. image_style:
  72. type: string
  73. label: 'Image style'
  74. width:
  75. type: integer
  76. label: Width
  77. grids:
  78. type: string
  79. label: Grids
  80. nested:
  81. type: string
  82. label: 'Nested grids'
  83. gridstack_breakpoints:
  84. type: mapping
  85. label: Breakpoints
  86. mapping:
  87. xs:
  88. type: gridstack_breakpoint
  89. label: XS
  90. sm:
  91. type: gridstack_breakpoint
  92. label: SM
  93. md:
  94. type: gridstack_breakpoint
  95. label: MD
  96. lg:
  97. type: gridstack_breakpoint
  98. label: LG
  99. xl:
  100. type: gridstack_breakpoint
  101. label: XL
  102. # GridStack JS settings managed by UI.
  103. gridstack_optionset:
  104. type: mapping
  105. label: 'Options'
  106. mapping:
  107. breakpoints:
  108. type: gridstack_breakpoints
  109. # @todo: Remove grids for breakpoints.
  110. grids:
  111. type: gridstack_grid
  112. icon:
  113. type: string
  114. label: Icon
  115. type:
  116. type: string
  117. label: Type
  118. use_framework:
  119. type: boolean
  120. label: 'Use static Grid framework'
  121. settings:
  122. type: mapping
  123. label: Settings
  124. mapping:
  125. alwaysShowResizeHandle:
  126. type: boolean
  127. label: 'Always show resize handle'
  128. auto:
  129. type: boolean
  130. label: Auto
  131. cellHeight:
  132. type: integer
  133. label: 'Cell height'
  134. disableDrag:
  135. type: boolean
  136. label: 'Disable drag'
  137. disableResize:
  138. type: boolean
  139. label: 'Disable resize'
  140. draggable:
  141. type: boolean
  142. label: Draggable
  143. float:
  144. type: boolean
  145. label: Float
  146. # @todo: Remove grids for breakpoints.
  147. isNested:
  148. type: boolean
  149. label: isNested
  150. minWidth:
  151. type: integer
  152. label: 'Min width'
  153. width:
  154. type: integer
  155. label: Width
  156. height:
  157. type: integer
  158. label: Height
  159. resizable:
  160. type: boolean
  161. label: Resizable
  162. rtl:
  163. type: boolean
  164. label: RTL
  165. staticGrid:
  166. type: boolean
  167. label: staticGrid
  168. verticalMargin:
  169. type: integer
  170. label: 'Vertical margin'
  171. noMargin:
  172. type: boolean
  173. label: 'No horizontal margin'
  174. # Individual GridStack JS settings managed by UI.
  175. gridstack.optionset.*:
  176. type: config_entity
  177. label: 'GridStack optionset'
  178. mapping:
  179. id:
  180. type: string
  181. label: ID
  182. name:
  183. type: string
  184. label: Name
  185. weight:
  186. type: integer
  187. label: Weight
  188. label:
  189. type: label
  190. label: Label
  191. uuid:
  192. type: string
  193. label: UUID
  194. json:
  195. type: gridstack_json
  196. options:
  197. type: gridstack_optionset
  198. label: Options
  199. # HTML content/layout-related settings managed by GridStack plugins.
  200. gridstack_vanilla:
  201. type: blazy_base
  202. label: 'GridStack display format vanilla settings'
  203. mapping: {}
  204. gridstack_base:
  205. type: blazy_base
  206. label: 'GridStack display format base settings'
  207. mapping:
  208. caption:
  209. type: sequence
  210. label: Captions
  211. sequence:
  212. - type: string
  213. label: 'Caption field'
  214. stamp:
  215. type: sequence
  216. label: Stamps
  217. sequence:
  218. - type: string
  219. field.formatter.settings.gridstack_image:
  220. type: gridstack_vanilla
  221. label: 'GridStack Image display format settings'
  222. field.formatter.settings.gridstack_file:
  223. type: gridstack_vanilla
  224. label: 'GridStack File display format settings'
  225. field.formatter.settings.gridstack_media:
  226. type: gridstack_vanilla
  227. label: 'GridStack Media display format settings'
  228. field.formatter.settings.gridstack_paragraphs:
  229. type: gridstack_vanilla
  230. label: 'GridStack Paragraphs display format settings'