materail-react-table using renderRowActions Resize

107 views Asked by At

I want to resize only that specific column

Material-react-table using renderRowActions

        <MaterialReactTable
            columns={columns}
            data={data ?? []}
            initialState={{ 
                density: 'compact',
                columnPinning: { 
                    right: ['mrt-row-actions'] 
                }
            }} 
            // positionActionsColumn={'last'}
            enableRowActions
            renderRowActions={renderRowActions}
            state={{
                isLoading:isLoading
            }}
        />

using pinning => (mrt-row-actions)

How to resize? because we are not defining column_def for this row-action

Where to add size - name of props

1

There are 1 answers

0
Muzammil Khan On

displayColumnDefOptions: { 'mrt-row-actions': { header: 'Change Account Settings', //change header text size: 200, //make actions column wider }, }