Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createGrid (el, v) {
const personsDataSource = generatePersonsDataSource(1000000)
const startTime = new Date()
const grid = new cheetahGrid.ListGrid({
parentElement: el,
header: [
{ field: 'check', caption: '', width: 50, columnType: 'check', action: 'check' },
{ field: 'personid', caption: 'ID', width: 85 },
{
field: 'stars',
caption: 'Class',
width: 150,
columnType: new cheetahGrid.columns.type.IconColumn({
name: 'star'
}),
style: {
color: 'gold'
},
action: new cheetahGrid.columns.action.InlineMenuEditor({
options: [