DataTable exportCsv with body

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
erdoganYilmaz
Posts: 1
Joined: 04 Aug 2021, 08:20

05 Aug 2021, 09:29

Temanızın DataTable componentini kullanırken Pagination kullanıyoruz ve birden fazla sayfada farklı sütunlarda body özelliğini kullanıyoruz.

Bu tablolardaki verileri export ederken body özelliğinin tabloda gösterdiği veriyi yazdırmak istiyoruz.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

28 Dec 2021, 08:35

Merhaba,

Bu tarz özel exportlar yapmak için exportFunction methodunu kullanabilirsiniz. Cell bazlı bütün rowları gezip, export etmek istediğiniz değeri döndürebilirsiniz.

Code: Select all

const onExportFunction = ({ data, field, rowData, column }) {
     return 'Test' + data;
}

...
<DataTable exportFunction={onExportFunction} ... />
Best Regards,

Post Reply

Return to “Ultima - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests