p-splitter does not work with p-treeTable #2719
Unanswered
btiller123
asked this question in
PrimeNG
Replies: 1 comment
-
@btiller123 Hi. I assumed you were using p-splitter with The Splitter component requires two https://gyazo.com/71ef402605715418e72b97ddb3b1c39b I hope I understood you correctly and this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I include p-treeTable inside p-splitter I cannot drag my horizontal bar up/down. Without p-treeTable it works fine. This non-draggable issue also occurs when I use ng-tempate with pTemplate="body" inside p-splitter. Please provide an example showing how to make p-splitter work with both. I've provided code snippets below.
<p-splitter
[style]= pSplitterStyle
styleClass="mb-5"
layout="vertical">
<p-treeTable
#treeTable
[value]="filteredNodes"
[columns]="cols"
selectionMode="checkbox"
[(selectionKeys)]="selectedKeys"
dataKey="id"
(sortFunction)="customColumnSort($event)"
[customSort]="true"
[styleClass]= "treeTableStyle"
scrollHeight="300px"
[scrollable]="true"
[tableStyle]="{ 'min-width': '50rem' }" >
<td *ngFor="let col of columns; let i = index; let last = last"
[ngClass]="rowData['isRead'] === true ? 'row-is-read': 'row-is-not-read'"
[style.width]="col.width"
(click)="onSelectRow(rowNode)">
@if(rowData['isArchived'] === false) {
<p-treeTableToggler
[rowNode]="rowNode"
*ngIf="i === 0" />
@if(isActiveCheckboxes) {
<p-treeTableCheckbox
[value]="rowNode"
*ngIf="i === 0"/>
Beta Was this translation helpful? Give feedback.
All reactions