From f9117be8958becc2c6fad6f8dce1704aee3de46f Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 22 Jan 2024 10:50:59 +0300 Subject: [PATCH] Fixed #5123 - DataTable: body template rowTogglerCallback callback option added --- components/lib/column/Column.d.ts | 7 ++++++- components/lib/datatable/BodyCell.vue | 12 +++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/components/lib/column/Column.d.ts b/components/lib/column/Column.d.ts index 21c2b8240..3e246eb39 100755 --- a/components/lib/column/Column.d.ts +++ b/components/lib/column/Column.d.ts @@ -684,10 +684,15 @@ export interface ColumnSlots { */ frozenRow: boolean; /** - * Callback function + * 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. diff --git a/components/lib/datatable/BodyCell.vue b/components/lib/datatable/BodyCell.vue index 89c99e78a..4829c0391 100755 --- a/components/lib/datatable/BodyCell.vue +++ b/components/lib/datatable/BodyCell.vue @@ -18,7 +18,17 @@ :data-p-frozen-column="columnProp('frozen')" > {{ columnProp('header') }} - +