diff --git a/components/doc/common/apidoc/index.json b/components/doc/common/apidoc/index.json index 79612c6bbb..13c0b6155f 100644 --- a/components/doc/common/apidoc/index.json +++ b/components/doc/common/apidoc/index.json @@ -19460,6 +19460,87 @@ ], "callbacks": [] }, + "DataTableBodyRowContext": { + "description": "Defines current options in DataTable bodyRow.", + "relatedProp": "", + "props": [ + { + "name": "selected", + "optional": false, + "readonly": false, + "type": "boolean" + }, + { + "name": "selectable", + "optional": false, + "readonly": false, + "type": "boolean" + }, + { + "name": "stripedRows", + "optional": false, + "readonly": false, + "type": "boolean" + }, + { + "name": "index", + "optional": false, + "readonly": false, + "type": "number" + } + ], + "callbacks": [] + }, + "DataTableBodyRowState": { + "description": "Defines current inline state in DataTable bodyRow.", + "relatedProp": "", + "props": [ + { + "name": "editing", + "optional": false, + "readonly": false, + "type": "boolean" + } + ], + "callbacks": [] + }, + "DataTableBodyRowPassThroughMethodOptions": { + "description": "Custom passthrough(pt) option method for bodyRow.", + "relatedProp": "", + "props": [ + { + "name": "hostName", + "optional": false, + "readonly": false, + "type": "string" + }, + { + "name": "context", + "optional": false, + "readonly": false, + "type": "DataTableBodyRowContext" + }, + { + "name": "parent", + "optional": false, + "readonly": false, + "type": "DataTablePassThroughMethodOptions" + }, + { + "name": "props", + "optional": false, + "readonly": false, + "type": "DataTableBaseProps" + }, + { + "name": "state", + "optional": false, + "readonly": false, + "type": "DataTableBodyRowState" + } + ], + "callbacks": [] + }, "DataTableBaseProps": { "description": "Defines valid properties in DataTable component. In addition to these, all properties of HTMLDivElement can be used in this component.", "relatedProp": "", diff --git a/components/lib/datatable/datatable.d.ts b/components/lib/datatable/datatable.d.ts index cd17603db6..112fc9ed2d 100644 --- a/components/lib/datatable/datatable.d.ts +++ b/components/lib/datatable/datatable.d.ts @@ -1004,6 +1004,34 @@ export interface DataTablePassThroughOptions { hooks?: ComponentHooks; } +/** + * Defines current options in DataTable bodyRow. + */ +export interface DataTableBodyRowContext { + selected: boolean; + selectable: boolean; + stripedRows: boolean; + index: number; +} + +/** + * Defines current inline state in DataTable bodyRow. + */ +export interface DataTableBodyRowState { + editing: boolean; +} + +/** + * Custom passthrough(pt) option method for bodyRow. + */ +export interface DataTableBodyRowPassThroughMethodOptions { + hostName: string; + context: DataTableBodyRowContext; + parent: DataTablePassThroughMethodOptions; + props: DataTableBaseProps; + state: DataTableBodyRowState; +} + type SortOrder = 1 | 0 | -1 | null | undefined; /**