|
19 | 19 | >
|
20 | 20 | <div class="italic div">Underlined attributes are <strong>required</strong>.</div>
|
21 | 21 | <div data-popup="popupClickTableConfig">
|
22 |
| - <CodeBlock language="ts" code={tableConfigTypeCode} /> |
| 22 | + <CodeBlock language="ts" code={tableConfigTypeCode} /> |
23 | 23 | </div>
|
24 | 24 | </div>
|
25 | 25 |
|
|
42 | 42 |
|
43 | 43 | <p class="text-xl pl-10">
|
44 | 44 | A writable store of the type <code
|
45 |
| - class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500">T[]</code |
| 45 | + class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
| 46 | + >T[]</code |
46 | 47 | >. Any changes in the store will be reflected in the table.
|
47 | 48 | </p>
|
48 | 49 | </div>
|
49 | 50 |
|
50 | 51 | <div class="items-center">
|
51 | 52 | <div class="flex gap-2">
|
52 |
| - <div class="italic">search:</div> |
53 |
| - <div class="font-bold">boolean</div> |
| 53 | + <div class="italic">resizable:</div> |
| 54 | + <div class="font-bold"><i>"rows"</i>, <i>"columns"</i> or <i>"both"</i></div> |
54 | 55 | </div>
|
55 | 56 |
|
56 | 57 | <p class="text-xl pl-10">
|
57 |
| - Whether the table should have a search bar. <code |
58 |
| - class="!text-xl bg-blue-100 dark:bg-blue-600/30 rounded-md p-0.5 text-blue-500">true</code |
59 |
| - > by default. |
| 58 | + Whether rows, columns or both should be resizable. Not resizable by default. |
60 | 59 | </p>
|
61 | 60 | </div>
|
62 | 61 |
|
63 | 62 | <div class="items-center">
|
64 | 63 | <div class="flex gap-2">
|
65 |
| - <div class="italic">exportable:</div> |
| 64 | + <div class="italic">showColumnsMenu:</div> |
66 | 65 | <div class="font-bold">boolean</div>
|
67 | 66 | </div>
|
68 | 67 |
|
69 | 68 | <p class="text-xl pl-10">
|
70 |
| - Whether the table should be exportable to CSV. <code |
| 69 | + Whether the show/hide columns menu should be visible. <code |
71 | 70 | class="!text-xl bg-red-100 dark:bg-red-400/30 rounded-md p-0.5 text-red-500">false</code
|
72 | 71 | > by default.
|
73 | 72 | </p>
|
|
80 | 79 | </div>
|
81 | 80 |
|
82 | 81 | <p class="text-xl pl-10">
|
83 |
| - Whether the <code class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
| 82 | + Whether the <code |
| 83 | + class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
84 | 84 | >fitToScreen</code
|
85 | 85 | >
|
86 | 86 | toggle should be visible.
|
87 |
| - <code class="!text-xl bg-red-100 dark:bg-red-400/30 rounded-md p-0.5 text-red-500">false</code> by default. |
88 |
| - </p> |
89 |
| - </div> |
90 |
| - |
91 |
| - <div class="items-center"> |
92 |
| - <div class="flex gap-2"> |
93 |
| - <div class="italic">resizable:</div> |
94 |
| - <div class="font-bold"><i>"rows"</i>, <i>"columns"</i> or <i>"both"</i></div> |
95 |
| - </div> |
96 |
| - |
97 |
| - <p class="text-xl pl-10"> |
98 |
| - Whether rows, columns or both should be resizable. Not resizable by default. |
| 87 | + <code class="!text-xl bg-red-100 dark:bg-red-400/30 rounded-md p-0.5 text-red-500">false</code |
| 88 | + > by default. |
99 | 89 | </p>
|
100 | 90 | </div>
|
101 | 91 |
|
102 | 92 | <div class="items-center">
|
103 | 93 | <div class="flex gap-2">
|
104 |
| - <div class="italic">rowHeight:</div> |
105 |
| - <div class="font-bold">number</div> |
| 94 | + <div class="italic">search:</div> |
| 95 | + <div class="font-bold">boolean</div> |
106 | 96 | </div>
|
107 | 97 |
|
108 | 98 | <p class="text-xl pl-10">
|
109 |
| - Sets height for the rows in pixels. If <code |
110 |
| - class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500">resizable</code |
111 |
| - > is set to "both" or "rows", this value can be interpreted as minimum height for the rows. |
| 99 | + Whether the table should have a search bar. <code |
| 100 | + class="!text-xl bg-blue-100 dark:bg-blue-600/30 rounded-md p-0.5 text-blue-500">true</code |
| 101 | + > by default. |
112 | 102 | </p>
|
113 | 103 | </div>
|
114 | 104 |
|
|
136 | 126 |
|
137 | 127 | <div class="items-center">
|
138 | 128 | <div class="flex gap-2">
|
139 |
| - <div class="italic">optionsComponent:</div> |
140 |
| - <div class="font-bold">{`SvelteComponent`}</div> |
| 129 | + <div class="italic">rowHeight:</div> |
| 130 | + <div class="font-bold">number</div> |
141 | 131 | </div>
|
142 | 132 |
|
143 | 133 | <p class="text-xl pl-10">
|
144 |
| - Custom Svelte component to apply actions on a specific row. Table will not have an options |
145 |
| - column if no <code class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
146 |
| - >optionsComponent</code |
147 |
| - > was provided. |
| 134 | + Sets height for the rows in pixels. If <code |
| 135 | + class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
| 136 | + >resizable</code |
| 137 | + > is set to "both" or "rows", this value can be interpreted as minimum height for the rows. |
| 138 | + </p> |
| 139 | + </div> |
| 140 | + |
| 141 | + <div class="items-center"> |
| 142 | + <div class="flex gap-2"> |
| 143 | + <div class="italic">columns:</div> |
| 144 | + <div class="font-bold">{`Columns`}</div> |
| 145 | + </div> |
| 146 | + |
| 147 | + <p class="text-xl pl-10"> |
| 148 | + An object with configuration for specific columns. <code |
| 149 | + class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
| 150 | + >Columns</code |
| 151 | + > |
| 152 | + object is described below. |
| 153 | + </p> |
| 154 | + </div> |
| 155 | + |
| 156 | + <div class="items-center"> |
| 157 | + <div class="flex gap-2"> |
| 158 | + <div class="italic">exportable:</div> |
| 159 | + <div class="font-bold">boolean</div> |
| 160 | + </div> |
| 161 | + |
| 162 | + <p class="text-xl pl-10"> |
| 163 | + Whether the table should be exportable to CSV. <code |
| 164 | + class="!text-xl bg-red-100 dark:bg-red-400/30 rounded-md p-0.5 text-red-500">false</code |
| 165 | + > by default. |
148 | 166 | </p>
|
149 | 167 | </div>
|
150 | 168 |
|
|
155 | 173 | </div>
|
156 | 174 |
|
157 | 175 | <p class="text-xl pl-10">
|
158 |
| - An array of page sizes to be used for the table. By default, page sizes are 5, 10, 20, 50, 100. |
| 176 | + An array of page sizes to be used for the table. By default, page sizes are 5, 10, 20, 50, |
| 177 | + 100. |
159 | 178 | </p>
|
160 | 179 | </div>
|
161 | 180 |
|
|
173 | 192 |
|
174 | 193 | <div class="items-center">
|
175 | 194 | <div class="flex gap-2">
|
176 |
| - <div class="italic">columns:</div> |
177 |
| - <div class="font-bold">{`Columns`}</div> |
| 195 | + <div class="italic">optionsComponent:</div> |
| 196 | + <div class="font-bold">{`SvelteComponent`}</div> |
178 | 197 | </div>
|
179 | 198 |
|
180 | 199 | <p class="text-xl pl-10">
|
181 |
| - An object with configuration for specific columns. <code |
182 |
| - class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500">Columns</code |
183 |
| - > |
184 |
| - object is described below. |
| 200 | + Custom Svelte component to apply actions on a specific row. Table will not have an options |
| 201 | + column if no <code |
| 202 | + class="!text-xl bg-tertiary-300 dark:bg-tertiary-700/50 rounded-md p-0.5 text-primary-500" |
| 203 | + >optionsComponent</code |
| 204 | + > was provided. |
185 | 205 | </p>
|
186 | 206 | </div>
|
187 | 207 | </div>
|
0 commit comments