playbook_ui_docs 13.19.0.pre.alpha.PBNTR207tabledivsupport2245 → 13.19.0.pre.alpha.PBNTR207tabledivsupport2261

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f46c37c2eca826cb24861f95445c890d8d4ad23323dae2bf2bc20da61550f18
4
- data.tar.gz: a9bb15e4be05af63c48a923bc0ba6f13adbaee4dbc468bc6084f611ad31d0aae
3
+ metadata.gz: 371298dc24bb6261c47235a1a1fc96535f40895bf2e367d2c74a0a2f2194856b
4
+ data.tar.gz: 27af54cb4a1555edd946811c6a9d790f9d15a12ffb83755bde53a51814147ad6
5
5
  SHA512:
6
- metadata.gz: 0a1d281da841af3a27f74d3bf004052d93cde45aec96f7556b5a5704dae4cefd362e038e3d28ced650f90531cb847a1e0d8982ab06846d497fe0dc819b9df5ee
7
- data.tar.gz: 3c4d5adbfe9c56ff0ed82b64d715c3ff771fdb5a256c61ff7c6481d8e8f172c93171d92dc6fe57d5a8e0b63e5543e37768ed389db131345738c97047007e2232
6
+ metadata.gz: af4a307e32b77ee025b590b0c8e4c050b85c56a828d79ebdc526687503be7eaf3f609f766a7e6111294fb01d166433123de1a7481f84b9baf5eb11632fe74849
7
+ data.tar.gz: 00d49100858c5b291a86fb2bfe30be7bbbebaf5c7c447d07b31c8077036bf9694ee7881b4092cc23e2487a6e97b5131780515f32a1d2ff7fe5612437966cf5ac
@@ -1 +1 @@
1
- `collapsibleTrail` is an optional prop that is set to 'true' by default. If set to 'false', it will remove the trail on the left of rows when subRows are toggled open.
1
+ `collapsibleTrail` is an optional prop that is set to 'true' by default. If set to 'false', it will remove the trail on the left of the rows when subRows are toggled open.
@@ -8,7 +8,7 @@ For a visual of the data structure needed for `tableData`, see [here](https://gi
8
8
 
9
9
  ### columnDefinitions
10
10
 
11
- `columnDefinitions` maps to the columns prop on the Tanstack table. Column definitions are the single most important part of building a table as they are responsible for building the underlying data model that is used for all sorting, expansion, etc. `ColumnDefinitions` in the AdvancedTable kit is a array of objects as seen in the code snippet below. Each object within the array has two REQUIRED items:
11
+ `columnDefinitions` maps to the columns prop on the Tanstack table. Column definitions are the single most important part of building a table as they are responsible for building the underlying data model that is used for all sorting, expansion, etc. `ColumnDefinitions` in the AdvancedTable kit is an array of objects as seen in the code snippet below. Each object within the array has two REQUIRED items:
12
12
 
13
13
  - `accessor`: this is the key from your data for the value you want rendered in that column
14
14
  - `label`: this is what will be rendered as the column header label
@@ -1,3 +1,3 @@
1
1
  the optional `loading` prop takes a boolean value that can be managed using state. If loading is true, the table will display the loading skeleton and once loading is false, the table will render with the data provided.
2
2
 
3
- By default, the inital row count of the loading skeleton is set to 10. If you want more control over this initial row count, the optional `initialLoadingRowCount` prop can be used to to pass in a number. __NOTE__: This is only for the first render of the table, subsequent loading skeleton row count logic is handled within the kit itself.
3
+ By default, the inital row count of the loading skeleton is set to 10. If you want more control over this initial row count, the optional `initialLoadingRowCount` prop can be used to pass in a number. __NOTE__: This is only for the first render of the table, subsequent loading skeleton row count logic is handled within the kit itself.
@@ -1,3 +1,3 @@
1
1
  `subRowHeaders` is an optional prop that if present will add header rows at each level of the nested data. The prop takes an array of strings, each string being the text for each header row. The array of strings must be in the order in which they need to be rendered in the UI according to depth.
2
2
 
3
- `enableToggleExpansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enableToggleExpansion` is a string that can be 'all' or 'header". If set to 'all', the toggle exapansion button will appear in the table header as well as in the subRow headers. If set to 'header' button will only appear in header and NOT in subRow headers. This is set to 'headeer' by default.
3
+ `enableToggleExpansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enableToggleExpansion` is a string that can be 'all', 'header" or "none". If set to 'all', the toggle exapansion button will appear in the table header as well as in the subRow headers. If set to 'header' button will only appear in header and NOT in subRow headers. This is set to 'header' by default.
@@ -1,3 +1,3 @@
1
1
  The Tanstack table consumes the useReactTable hook to create the table. This hook takes an object that can contain any of the functions that the Tanstack table provides. The advancedTable's optional `tableOptions` can be used to pass tanstack options to the kit.
2
2
 
3
- In the above example, we are using the initialState option provided by tanstack that takes sort as one of it's values. Setting it to true for the first column is reversing the sort order on first render of the table. For a complete list of possible options and hoe to use them, see [here](https://tanstack.com/table/v8/docs/api/core/table#usereacttable--createsolidtable--usevuetable--createsveltetable)
3
+ In the above example, we are using the initialState option provided by tanstack that takes sort as one of it's values. Setting it to true for the first column is reversing the sort order on first render of the table. For a complete list of possible options and how to use them, see [here](https://tanstack.com/table/v8/docs/api/core/table#usereacttable--createsolidtable--usevuetable--createsveltetable)
@@ -1,34 +1,34 @@
1
1
  <%= pb_rails("table", props: { size: "sm", tag: "div" }) do %>
2
- <div class="thead">
3
- <div class="tr">
4
- <div class="th">Column 1</div>
5
- <div class="th">Column 2</div>
6
- <div class="th">Column 3</div>
7
- <div class="th">Column 4</div>
8
- <div class="th">Column 5</div>
2
+ <div class="pb_table_thead">
3
+ <div class="pb_table_tr">
4
+ <div class="pb_table_th">Column 1</div>
5
+ <div class="pb_table_th">Column 2</div>
6
+ <div class="pb_table_th">Column 3</div>
7
+ <div class="pb_table_th">Column 4</div>
8
+ <div class="pb_table_th">Column 5</div>
9
9
  </div>
10
10
  </div>
11
- <div class="tbody">
12
- <div class="tr">
13
- <div class="td">Value 1</div>
14
- <div class="td">Value 2</div>
15
- <div class="td">Value 3</div>
16
- <div class="td">Value 4</div>
17
- <div class="td">Value 5</div>
11
+ <div class="pb_table_tbody">
12
+ <div class="pb_table_tr">
13
+ <div class="pb_table_td">Value 1</div>
14
+ <div class="pb_table_td">Value 2</div>
15
+ <div class="pb_table_td">Value 3</div>
16
+ <div class="pb_table_td">Value 4</div>
17
+ <div class="pb_table_td">Value 5</div>
18
18
  </div>
19
- <div class="tr">
20
- <div class="td">Value 1</div>
21
- <div class="td">Value 2</div>
22
- <div class="td">Value 3</div>
23
- <div class="td">Value 4</div>
24
- <div class="td">Value 5</div>
19
+ <div class="pb_table_tr">
20
+ <div class="pb_table_td">Value 1</div>
21
+ <div class="pb_table_td">Value 2</div>
22
+ <div class="pb_table_td">Value 3</div>
23
+ <div class="pb_table_td">Value 4</div>
24
+ <div class="pb_table_td">Value 5</div>
25
25
  </div>
26
- <div class="tr">
27
- <div class="td">Value 1</div>
28
- <div class="td">Value 2</div>
29
- <div class="td">Value 3</div>
30
- <div class="td">Value 4</div>
31
- <div class="td">Value 5</div>
26
+ <div class="pb_table_tr">
27
+ <div class="pb_table_td">Value 1</div>
28
+ <div class="pb_table_td">Value 2</div>
29
+ <div class="pb_table_td">Value 3</div>
30
+ <div class="pb_table_td">Value 4</div>
31
+ <div class="pb_table_td">Value 5</div>
32
32
  </div>
33
33
  </div>
34
34
  <% end %>
@@ -5,38 +5,39 @@ const TableDiv = (props) => {
5
5
  return (
6
6
  <Table
7
7
  size="sm"
8
+ tag="div"
8
9
  {...props}
9
10
  >
10
- <div className="thead">
11
- <div className="tr">
12
- <div className="th">{'Column 1'}</div>
13
- <div className="th">{'Column 2'}</div>
14
- <div className="th">{'Column 3'}</div>
15
- <div className="th">{'Column 4'}</div>
16
- <div className="th">{'Column 5'}</div>
11
+ <div className="pb_table_thead">
12
+ <div className="pb_table_tr">
13
+ <div className="pb_table_th">{'Column 1'}</div>
14
+ <div className="pb_table_th">{'Column 2'}</div>
15
+ <div className="pb_table_th">{'Column 3'}</div>
16
+ <div className="pb_table_th">{'Column 4'}</div>
17
+ <div className="pb_table_th">{'Column 5'}</div>
17
18
  </div>
18
19
  </div>
19
- <div className="tbody">
20
- <div className="tr">
21
- <div className="td">{'Value 1'}</div>
22
- <div className="td">{'Value 2'}</div>
23
- <div className="td">{'Value 3'}</div>
24
- <div className="td">{'Value 4'}</div>
25
- <div className="td">{'Value 5'}</div>
20
+ <div className="pb_table_tbody">
21
+ <div className="pb_table_tr">
22
+ <div className="pb_table_td">{'Value 1'}</div>
23
+ <div className="pb_table_td">{'Value 2'}</div>
24
+ <div className="pb_table_td">{'Value 3'}</div>
25
+ <div className="pb_table_td">{'Value 4'}</div>
26
+ <div className="pb_table_td">{'Value 5'}</div>
26
27
  </div>
27
- <div className="tr">
28
- <div className="td">{'Value 1'}</div>
29
- <div className="td">{'Value 2'}</div>
30
- <div className="td">{'Value 3'}</div>
31
- <div className="td">{'Value 4'}</div>
32
- <div className="td">{'Value 5'}</div>
28
+ <div className="pb_table_tr">
29
+ <div className="pb_table_td">{'Value 1'}</div>
30
+ <div className="pb_table_td">{'Value 2'}</div>
31
+ <div className="pb_table_td">{'Value 3'}</div>
32
+ <div className="pb_table_td">{'Value 4'}</div>
33
+ <div className="pb_table_td">{'Value 5'}</div>
33
34
  </div>
34
- <div className="tr">
35
- <div className="td">{'Value 1'}</div>
36
- <div className="td">{'Value 2'}</div>
37
- <div className="td">{'Value 3'}</div>
38
- <div className="td">{'Value 4'}</div>
39
- <div className="td">{'Value 5'}</div>
35
+ <div className="pb_table_tr">
36
+ <div className="pb_table_td">{'Value 1'}</div>
37
+ <div className="pb_table_td">{'Value 2'}</div>
38
+ <div className="pb_table_td">{'Value 3'}</div>
39
+ <div className="pb_table_td">{'Value 4'}</div>
40
+ <div className="pb_table_td">{'Value 5'}</div>
40
41
  </div>
41
42
  </div>
42
43
  </Table>