SharedTableTracking allows "linking" select checkboxes in tracking tables by adding a new
data-tpt-share attribute with a semicolon list of the data-row-id the checkbox should be linked to. The list of IDs is only required to be defined once per group.
Installation
Usage
<table-progress-tracking table-id="shareTest">
{| class="wikitable"
! Header
|-
| data-row-id="1" | Row 1, unlinked
|-
| data-row-id="2" data-tpt-share="4" | Row 2, linked to row 4
|-
| data-row-id="3" data-tpt-share="5" | Row 3, linked to row 5
|-
<!-- "data-tpt-share" defined in row 2, so nothing needed here -->
| data-row-id="4" | Row 4, linked to row 2
|-
<!-- this "data-tpt-share" definition is optional, as it's defined in row 3 -->
| data-row-id="5" data-tpt-share="3" | Row 5, linked to row 3
|-
| data-row-id="6" data-tpt-share="7;8" | Row 6, linked to row 7 and 8
|-
<!-- "data-tpt-share" defined in row 6, so nothing needed here -->
| data-row-id="7" | Row 7, linked to row 6 and 8
|-
<!-- "data-tpt-share" defined in row 6, so nothing needed here -->
| data-row-id="8" | Row 8, linked to row 6 and 7
|}
</table-progress-tracking>
|
|
Header |
|---|---|
|
|
Row 1, unlinked |
|
|
Row 2, linked to row 4 |
|
|
Row 3, linked to row 5 |
|
|
Row 4, linked to row 2 |
|
|
Row 5, linked to row 3 |
|
|
Row 6, linked to row 7 and 8 |
|
|
Row 7, linked to row 6 and 8 |
|
|
Row 8, linked to row 6 and 7 |
Text above can be found here (edit)