From 0bdd9d0d58e65d6b9f6ad8f03991579949ecb6a6 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 11 Sep 2024 15:38:53 +0300 Subject: [PATCH] Update Column.d.ts --- packages/primevue/src/column/Column.d.ts | 42 +++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/packages/primevue/src/column/Column.d.ts b/packages/primevue/src/column/Column.d.ts index 95e65839e..671f14e0c 100755 --- a/packages/primevue/src/column/Column.d.ts +++ b/packages/primevue/src/column/Column.d.ts @@ -642,7 +642,7 @@ export interface ColumnContext { */ export interface ColumnSlots { /** - * Custom body template. + * Custom body template for DataTable. * @param {Object} scope - body slot's params. */ body(scope: { @@ -681,6 +681,46 @@ export interface ColumnSlots { */ rowTogglerCallback: (event: Event) => void; }): VNode[]; + /** + * Custom body template for TreeTable. + * @param {Object} scope - body slot's params. + */ + node(scope: { + /** + * Row data. + */ + data: any; + /** + * Row node data. + */ + node: any; + /** + * Column node. + */ + column: ColumnNode; + /** + * Column field. + */ + field: string; + /** + * Row index. + */ + index: number; + /** + * Whether the row is frozen. + */ + frozenRow: boolean; + /** + * Editor init callback function + * @param {Event} event - Browser event + */ + editorInitCallback: (event: Event) => void; + /** + * Row toggler callback unction + * @param {Event} event - Browser event + */ + rowTogglerCallback: (event: Event) => void; + }): VNode[]; /** * Custom header template. * @param {Object} scope - header slot's params.