Skip to content

Commit 67525aa

Browse files
authored
Disable column selection for multiple of same
Column selection should be disabled for multiple of same component. - It has never worked and the only way to make it work now would be to pass in some identifier at mount() and use that to change the fingerprint with `setDataTableFingerprint()`. - Due to the high potential for errors in setting arbitrary properties and manipulating them at mount(), then attempting to use them in configure(), I think it's best not to support this type of configuration in the docs, although IT CAN BE DONE. - There is a suggestion in the docs for reusing components on different pages which is less error prone.
1 parent f1e86e1 commit 67525aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/misc/multiple-tables.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,14 @@ public function configure(): void
9292
$this->setQueryStringDisabled();
9393
}
9494
```
95+
96+
## Disabling column selection for multiple of the same component
97+
98+
You should also disable the columns selection for those components so the column selection state does not get replaced by one or the other:
99+
100+
```php
101+
public function configure(): void
102+
{
103+
$this->setColumnSelectStatus(false);
104+
}
105+
```

0 commit comments

Comments
 (0)