Skip to content

Instantly share code, notes, and snippets.

@lmcarreiro
Last active March 21, 2018 17:50
Show Gist options
  • Save lmcarreiro/386e301651161e529df33782baedc9b0 to your computer and use it in GitHub Desktop.
Save lmcarreiro/386e301651161e529df33782baedc9b0 to your computer and use it in GitHub Desktop.
Grid Columns with line-breaks
const columns = [
{
name: 'id',
index: 'id',
width: 55
},
{
name: 'invdate',
index: 'invdate',
width: 90
},
{
name: 'name',
index: 'name asc, invdate',
width: 100
},
{
name: 'amount',
index: 'amount',
width: 80,
align: "right"
},
{
name: 'tax',
index: 'tax',
width: 80,
align: "right"
},
{
name: 'total',
index: 'total',
width: 80,
align: "right"
},
{
name: 'note',
index: 'note',
width: 150,
sortable: false
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment