Update Column.d.ts

pull/6391/head
tugcekucukoglu 2024-09-11 15:38:53 +03:00
parent bbac350313
commit 0bdd9d0d58
1 changed files with 41 additions and 1 deletions

View File

@ -642,7 +642,7 @@ export interface ColumnContext {
*/ */
export interface ColumnSlots { export interface ColumnSlots {
/** /**
* Custom body template. * Custom body template for DataTable.
* @param {Object} scope - body slot's params. * @param {Object} scope - body slot's params.
*/ */
body(scope: { body(scope: {
@ -681,6 +681,46 @@ export interface ColumnSlots {
*/ */
rowTogglerCallback: (event: Event) => void; rowTogglerCallback: (event: Event) => void;
}): VNode[]; }): 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. * Custom header template.
* @param {Object} scope - header slot's params. * @param {Object} scope - header slot's params.