From f680fc06f8de903729b6b8ed3b49d96fc633663d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:28:51 +0300 Subject: [PATCH] Fixed #14559 --- src/app/components/treetable/treetable.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/components/treetable/treetable.ts b/src/app/components/treetable/treetable.ts index 83274adde6c..60b341fcd4a 100755 --- a/src/app/components/treetable/treetable.ts +++ b/src/app/components/treetable/treetable.ts @@ -3311,6 +3311,7 @@ export class TreeTableCellEditor implements AfterContentInit { selector: '[ttRow]', host: { class: 'p-element', + '[class]': `'p-element ' + styleClass`, '[attr.tabindex]': "'0'", '[attr.aria-expanded]': 'expanded', '[attr.aria-level]': 'level', @@ -3323,6 +3324,10 @@ export class TTRow { return this.rowNode?.['level'] + 1; } + get styleClass() { + return this.rowNode?.node['styleClass'] || ''; + } + get expanded() { return this.rowNode?.node['expanded']; }