Skip to content
Source
Sign inSign up
TanStack/table

Extra table rows #30

Closedhect1c(GitHub profile, opens in a new tab) opened this issue 2 comments

Hey,

When I create the table extra rows seem to be created, yet I only have 4 records in my global variable.

` handleAssignedBookings() { //get bookings let data, columns, options = {};

data = DATA.bookings.map( function(items) { if( items.status != 'pending' ) { return items; } });

//get columns columns = [ { header: 'Name', accessor: 'driver.firstName', }, { header: 'Pick-up Date/Time', accessor: 'pickUp.dateTime', }, { header: 'From', accessor: 'from.location', }, { header: 'To', accessor: 'to.location', }, { header: 'Status', accessor: 'status' } ];

//set table config options //https://github.com/tannerlinsley/react-table#props options = { showPageSizeOptions: false, showPageJump: false, showPagination: false }

return { data: data, columns: columns, options: options } }`

This is one of me methods that I pass to create the table. I've also attached an image localhost

Thanks

  1. It seems I need to explicitly set minRows in my options. Thought there would be a default ?

  2. It uses minRows or pageSize. Whichever is set On Wed, Jan 18, 2017 at 11:23 AM Hartley Jean-Aimee < notifications@github.com> wrote:

    It seems I need to explicitly set minRows in my options. Thought there would be a default ?

    — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/tannerlinsley/react-table/issues/30#issuecomment-273557557>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFUmCXKsb_nkUQSQx8abZCSycyKzuNTgks5rTliXgaJpZM4LnM2B> .

Sign in to join this conversation.