- I want to set
display
toinline-block
butcellStyle
does not recognises it is there an alternative to this ? - how do i modify the width of a specific column ,assume name is
title
here without changing width of all columns ?
note
This works but i want to add other styling props aswell but i cant figure out how
column.push({
title:key,
field:key,
cellStyle: {
backgroundColor: '#039be5',
color: '#FFF',
},
})
App.js
const MyComponent = () => {
return (
<div style={{ maxWidth: "100%" }}>
<MaterialTable
icons={tableIcons}
columns={column}
data={data}
title="Demo Title"
options={{
rowStyle: {
fontSize:10,
},
}}
/>
</div>
)
};
export default MyComponent