Skip to content

Commit

Permalink
Specify column width
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jan 3, 2018
1 parent 6b672d2 commit b8eb891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/tables/AutoFitOrJustified.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,28 @@ export default class extends Component {
columns = [
{
title: 'Event Type',
width: '20%',
render: (value, row, index) => {
return row.eventType;
}
},
{
title: 'Affected Devices',
width: '10%',
render: (value, row, index) => {
return row.affectedDevices;
}
},
{
title: 'Detections',
width: '10%',
render: (value, row, index) => {
return row.detections;
}
},
{
title: 'Description',
width: '60%',
dataKey: 'description'
}
];
Expand Down

0 comments on commit b8eb891

Please sign in to comment.