Skip to content
Source
Sign inSign up
TanStack/table

Style odd Rows through options #31

Closedhect1c(GitHub profile, opens in a new tab) opened this issue 1 comment

Hey,

Is it possible to change the background of a Odd row through the config options ? Looking at the docs I'm thinking I would need to use either trStyleCallback: row => {} or trClassCallback: row => null. Is this correct? If so how would that look exactly ?

I could just override the css rules but looking to make sure there isn't an option available for this already. Thanks.

  1. Its all in the CSS for now. And probably much easier to work with than the row callback On Wed, Jan 18, 2017 at 11:12 AM Hartley Jean-Aimee < notifications@github.com> wrote:

    Hey,

    Is it possible to change the background of a Odd row through the config options ? Looking at the docs I'm thinking I would need to use either trStyleCallback: row => {} or trClassCallback: row => null. Is this correct? If so how would that look exactly ?

    I could just override the css rules but looking to make sure there isn't an option available for this already. Thanks.

    — 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/31>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFUmCe5-6Z8C367BXZ7LK2p66F5PTb12ks5rTlYfgaJpZM4LnNtc> .

Sign in to join this conversation.