playbook_ui_docs 14.21.2.pre.alpha.PLAY21898327 → 14.21.2.pre.alpha.PLAY22358326

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b60a6973ff84752041a72d4d05bae9e54b7dbe9b9f843e260f82f6dab0a2877
4
- data.tar.gz: 02ef571d991fdbbc09a65ab1706ea49004ed24d9c006f408cdd7af65fc9b885d
3
+ metadata.gz: e82620f27d071d47b75f2236f866178efcead1f41d44265c9f097c90e3a1eb2a
4
+ data.tar.gz: e05b4a7f4dfaa6615207c7f7b2ac9b771daa2968731a70e1a5043243173035f9
5
5
  SHA512:
6
- metadata.gz: 3e5c3d7cd9443b08eb8e2804f4fde548569d6854d30f8ed492ddadfb8f92496a93b332c6c5a19a2ce1b0c71d38ce01a028c3a92af7636a5db64f9adc4ffc1d23
7
- data.tar.gz: 2287adc3838136d66b9af2f0d85894fe2e0932d556b10024fc5892eb29a65fc413d7bdef20d3b2bbc2b261d2dc9905f6d7122c22926b6ee131e59ffe27150896
6
+ metadata.gz: 191e360d43d50a4857251d4a7e4f794ba04468dffcd0a5d0de3a8ca009b86f872d98988b6ea813b666e24e4fdf461d40eccc34b792d8fe9f0d6968ad5d2dc734
7
+ data.tar.gz: 0265b22bbdac70704d552c4bacd520438fcee6f31ea8b67c81a61d0932ddceee4cff41abd8b65ccf3ded2c78e21bfbc635b7b0c72e03a85bc7013e5f2f1b8958
@@ -35,7 +35,7 @@ const AdvancedTableRowPinning = (props) => {
35
35
  },
36
36
  ]
37
37
 
38
- const [pinnedRows, setPinnedRows] = useState({top: ["8", "9", "10", "11", "12", "13", "14"]})
38
+ const [pinnedRows, setPinnedRows] = useState({top: ["8"]})
39
39
 
40
40
  return (
41
41
  <div>
@@ -1,5 +1,7 @@
1
- Use the `pinnedRows` prop to pin specific rows to the top of an Advanced Table. Pinned rows will remain at the top when scrolling through table data and reorganizing via sorting.
1
+ Use the `pinnedRows` prop to pin specific rows to the top of an Advanced Table. Pinned rows will remain at the top when scrolling through table data and will not change position if sorting is used.
2
2
 
3
- **NOTE:** This prop is in Beta. Current Requirements for V1:
3
+ **NOTE:**
4
4
  - Sticky header required: Pinned rows must be used with `sticky: true` via `tableProps` (works with both responsive and non-responsive tables)
5
- - Row ids required: Pass an array of row ids to the `top` property. For expandable rows, both parent and all its child row ids must be included individually
5
+ - Row ids required: Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.
6
+ - `pinnedRows` takes an array of row ids to the `top` property as shown in the code snippet below.
7
+ - For expandable rows, use the parent id in `pinnedRows`, all its children will automatically be pinned with it. If id for a child is passed in without parent being pinned, nothing will be pinned.