PluginProbe
Tableberg – Simple Gutenberg Table Block / trunk
Tableberg – Simple Gutenberg Table Block vtrunk
1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.5.8 All 41 releases
tableberg / renderer / Table / Defaults.php

Defaults.php in Tableberg – Simple Gutenberg Table Block trunk, at renderer/Table/Defaults.php

131 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Block Defaults
5 *
6 * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
7 * Generated from: packages/tableberg/src/attributes.ts
8 *
9 * @package Tableberg
10 */
11
12 namespace Tableberg\Renderer\Table;
13
14 /**
15 * Table Block Defaults
16 */
17 class Defaults {
18 /**
19 * Get default attribute values for the table block
20 *
21 * @return array
22 */
23 public static function get_defaults() {
24 return [
25 'version' => 0,
26 'isExample' => false,
27 'table' => [
28 'rows' => 0,
29 'cols' => 0,
30 'className' => '',
31 'headerEnabled' => false,
32 'footerEnabled' => false,
33 'stickyHeader' => false,
34 'stickyFirstCol' => false,
35 'innerBorderType' => '',
36 'caption' => '',
37 'tableWidth' => 'auto',
38 'tableAlignment' => 'left',
39 'cellSpacing' => [
40 'horizontal' => '0',
41 'vertical' => '0',
42 ],
43 'tableBorder' => [
44 'top' => '',
45 'right' => '',
46 'bottom' => '',
47 'left' => '',
48 ],
49 'margin' => [
50 'top' => '',
51 'right' => '',
52 'bottom' => '',
53 'left' => '',
54 ],
55 'padding' => [
56 'top' => '',
57 'right' => '',
58 'bottom' => '',
59 'left' => '',
60 ],
61 'fixedColumnWidths' => true,
62 'pagination' => [
63 'enabled' => false,
64 'pageSize' => 10,
65 'showPageNumbers' => true,
66 'showPrevNext' => true,
67 ],
68 'search' => [
69 'enabled' => false,
70 'placeholder' => 'Search...',
71 'highlightColor' => '',
72 'position' => 'left',
73 ],
74 'responsive' => [
75 'tablet' => [
76 'enabled' => false,
77 'maxWidth' => 700,
78 'mode' => 'scroll',
79 'transpose' => false,
80 'stackCount' => 3,
81 'repeatFirstCol' => false,
82 ],
83 'mobile' => [
84 'enabled' => false,
85 'maxWidth' => 375,
86 'mode' => 'scroll',
87 'transpose' => false,
88 'stackCount' => 1,
89 'repeatFirstCol' => false,
90 ],
91 ],
92 ],
93 'rows' => [],
94 'columns' => [],
95 'cells' => [],
96 'bindings' => [],
97 'cellDefaults' => [
98 'styles' => [
99 'padding' => [
100 'top' => 'var(--wp--preset--spacing--20)',
101 'right' => 'var(--wp--preset--spacing--20)',
102 'bottom' => 'var(--wp--preset--spacing--20)',
103 'left' => 'var(--wp--preset--spacing--20)',
104 ],
105 'border' => [
106 'top' => '1px solid black',
107 'right' => '1px solid black',
108 'bottom' => '1px solid black',
109 'left' => '1px solid black',
110 ],
111 'borderRadius' => [
112 'topLeft' => '0px',
113 'topRight' => '0px',
114 'bottomRight' => '0px',
115 'bottomLeft' => '0px',
116 ],
117 'orientation' => 'vertical',
118 'elementGap' => 'var(--wp--preset--spacing--20)',
119 'wrap' => 'nowrap',
120 'verticalAlign' => 'middle',
121 'backgroundColor' => '',
122 'headerBackgroundColor' => '',
123 'footerBackgroundColor' => '',
124 'evenRowBackgroundColor' => '',
125 'oddRowBackgroundColor' => '',
126 ],
127 ],
128 ];
129 }
130 }
131