简体   繁体   中英

Styling the selectTable header in react-table

Using the selectTable option out of the react-table component, we've figured out how to style each header's column with headerStyle that we're generating but can't figure out how to style the actual select toggle (first) column that contains the toggle checkbox.

Can't seem to find anything in the documentation that would indicate how to do this.

I am answering but if your issue is not related to this then Can you explain the issue with your code?

    columns={[

        {
           accessor: 'myAcc',
           Header: //any jsx or string here,
           getProps: () => getProps(redCell), // return CSS
           Cell: (rowInfo): JSX.Element => //you can render your jsx for the cell. 
        },
   ]}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM