Skip to content

Instantly share code, notes, and snippets.

@b2whats
Created January 27, 2017 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b2whats/9686ef59e84399249055fb61046b708c to your computer and use it in GitHub Desktop.
Save b2whats/9686ef59e84399249055fb61046b708c to your computer and use it in GitHub Desktop.
scheme: {
rowHeight: 45,
headerHeight: 30,
rowClick: true,
checkbox: true,
counter: true,
columns: [{
type: 'text',
dataKey: 'name',
label: 'Name',
width: 200,
autoWidth: true,
}, {
type: 'link',
dataKey: 'email',
label: 'Email',
width: 200,
flexGrow: 1,
columnData: {
filters: {
sort: {},
// range: {
// min: 0,
// max: 1000,
// },
contains: {},
},
target: '_blank',
template: '/${name}/link/${email}',
},
}, {
type: 'custom',
dataKey: 'custom',
label: 'Custom',
width: 200,
flexGrow: 1,
cells: [
{
type: 'link',
dataKey: 'email',
label: 'Email',
width: 200,
flexGrow: 1,
columnData: {
target: '_blank',
template: '/${name}/link/${email}',
},
}, {
dataKey: 'description',
label: 'Description',
width: 200,
flexGrow: 1,
},
],
}, {
type: 'array',
dataKey: 'array',
label: 'Array',
width: 200,
columnData: {
delimiter: ' ∞ ',
},
}, {
dataKey: 'description',
label: 'Description',
width: 200,
flexGrow: 1,
}, {
type: 'number',
dataKey: 'status',
label: 'Status',
width: 200,
flexGrow: 1,
}],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment