diff --git a/api-generator/components/datatable.js b/api-generator/components/datatable.js index 8266bfb2d..0b875f983 100644 --- a/api-generator/components/datatable.js +++ b/api-generator/components/datatable.js @@ -377,6 +377,12 @@ const DataTableProps = [ type: 'string', default: 'null', description: 'Style class of the table element.' + }, + { + name: 'pt', + type: 'any', + default: 'null', + description: 'Uses to pass attributes to DOM elements inside the component.' } ]; diff --git a/components/lib/config/PrimeVue.d.ts b/components/lib/config/PrimeVue.d.ts index af86e280b..c6ffba8a7 100644 --- a/components/lib/config/PrimeVue.d.ts +++ b/components/lib/config/PrimeVue.d.ts @@ -19,6 +19,7 @@ import { ColorPickerPassThroughOptions } from '../colorpicker'; import { ConfirmDialogPassThroughOptions } from '../confirmdialog'; import { ConfirmPopupPassThroughOptions } from '../confirmpopup'; import { ContextMenuPassThroughOptions } from '../contextmenu'; +import { DataTablePassThroughOptions } from '../datatable'; import { DeferredContentPassThroughOptions } from '../deferredcontent'; import { DialogPassThroughOptions } from '../dialog'; import { DividerPassThroughOptions } from '../divider'; @@ -108,6 +109,7 @@ interface PrimeVuePTOptions { confirmdialog?: ConfirmDialogPassThroughOptions; confirmpopup?: ConfirmPopupPassThroughOptions; contextmenu?: ContextMenuPassThroughOptions; + datatable?: DataTablePassThroughOptions; deferredcontent?: DeferredContentPassThroughOptions; divider?: DividerPassThroughOptions; dialog?: DialogPassThroughOptions; diff --git a/components/lib/datatable/BodyCell.vue b/components/lib/datatable/BodyCell.vue index 3cfb83d1e..da1592e9c 100755 --- a/components/lib/datatable/BodyCell.vue +++ b/components/lib/datatable/BodyCell.vue @@ -1,9 +1,9 @@