primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Table: Document possibility to pass function as dataKey

Open AndreasHae opened this issue 1 year ago • 1 comments

Describe the bug

I just spent an hour investigating our internal use of the p-table component because we are passing a function to its dataKey property, while both the documentation and the Typescript type indicate that only string values are allowed.

Both the type and the docs should indicate that it is possible to pass a function instead of the property path.

Environment

?

Reproducer

No response

Angular version

15.2.9

PrimeNG version

15.3.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.13.2

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

AndreasHae avatar Jun 13 '23 14:06 AndreasHae