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.