VibeFox JS Grid — Demo
Quick start
Plain HTML
Typed columns, a check box column, a heatmap column with a sum in the totals row, the status bar and a quick search with the query syntax. Click a header to sort, double-click a name to edit it.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 300,
columns: [
{ field: 'name', header: 'Name', editable: true },
{ field: 'city', header: 'City' },
{ field: 'salary', header: 'Salary', type: 'number', aggregate: 'sum', heatmap: true },
{ field: 'joined', header: 'Joined', type: 'date' },
{ field: 'active', header: 'Active', type: 'boolean', editable: true },
],
selection: { mode: 'row', multi: true, checkbox: true },
footer: true,
statusBar: true,
});
grid.setQuickFilter('salary>60000');
grid.setSelection([3]);Columns
Column definitions
A pinned name column, number, date, select and boolean columns with their own formats and alignment.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: [
{ field: 'name', header: 'Name', width: 160, pin: 'left' },
{ field: 'dept', header: 'Department', type: 'select', options: ['Sales', 'Engineering', 'Support'] },
{ field: 'salary', header: 'Salary', type: 'number', decimals: 2 },
{ field: 'joined', header: 'Joined', type: 'date', dateFormat: 'DD.MM.YYYY' },
{ field: 'active', header: 'Active', type: 'boolean', align: 'center' },
{ field: 'rating', header: 'Rating', type: 'number', formatter: (v) => '★'.repeat(v) },
],
});Column groups (multi-level headers)
Two levels of column groups above the column headers; "Employee" is collapsible: click its toggle to hide or show the City column.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: [
{ header: 'Employee', groupId: 'emp', collapsible: true, children: [
{ field: 'name', header: 'Name' },
{ field: 'city', header: 'City', groupShow: 'open' },
] },
{ header: 'Work', children: [
'dept',
{ header: 'Pay', children: [{ field: 'salary', type: 'number' }, { field: 'rating', type: 'number' }] },
] },
],
});Columns tool panel and grouping panel
The columns panel on the right (show / hide, pin, reorder) and the grouping panel above the grid with one grouping level. Drag a column header into the grouping panel to add a level.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 360,
columns: ['name', 'dept', 'city', { field: 'salary', type: 'number', aggregate: 'avg' }],
sideBar: { width: 220 },
groupPanel: true,
groupBy: ['dept'],
});Cell renderers and editors
Renderers
An HTML renderer for a status badge and a lifecycle renderer that mounts a progress bar in every visible cell.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: [
'name',
{ field: 'active', header: 'Status', renderer: (p) => p.value
? '<b style="color:#15803d">● active</b>' : '<span style="color:#b91c1c">● inactive</span>' },
{ field: 'rating', header: 'Rating', width: 220, renderer: {
mount(el, p) { const bar = document.createElement('progress'); bar.max = 5; bar.value = p.value; el.append(bar); return bar; },
update(el, p, bar) { bar.value = p.value; },
} },
],
});Editors
The built-in rich select editor of the City column, opened with beginEdit(). Pick a city, then double-click another City cell.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 360,
editable: true,
columns: ['name', { field: 'city', header: 'City', width: 200, editor: 'richSelect',
editorOptions: { values: ['Berlin', 'London', 'Madrid', 'Paris', 'Rome', 'Vienna'] } }, 'dept'],
});
grid.beginEdit(2, 'city');Rows and data
Tree data
Nested rows with expand / collapse toggles and indentation; click a toggle to collapse a branch.
const grid = VibeFoxJSGrid.createGrid('#app', {
tree: true,
rowId: 'id',
height: 300,
columns: [{ field: 'name', header: 'Region', width: 240 }, { field: 'staff', type: 'number', aggregate: 'sum' }],
data: [
{ id: 1, name: 'Europe', staff: 120, children: [
{ id: 2, name: 'Germany', staff: 70, children: [{ id: 3, name: 'Berlin', staff: 50 }, { id: 4, name: 'Munich', staff: 20 }] },
{ id: 5, name: 'France', staff: 50, children: [{ id: 6, name: 'Paris', staff: 50 }] },
] },
{ id: 7, name: 'America', staff: 40, children: [{ id: 8, name: 'Boston', staff: 40 }] },
],
});Pinned rows and the new-row input
The new-row input pinned at the top and a totals row pinned at the bottom (computed from the filtered rows). Type a name and a salary in the top row and press Enter.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 360,
editable: true,
columns: ['name', 'city', { field: 'salary', type: 'number' }],
newRow: { position: 'top' },
pinnedBottomRows: ({ rows }) => [{ name: 'Total', salary: rows.reduce((s, r) => s + r.salary, 0) }],
});Master / detail
A master row expanded with a nested grid of its orders; click the toggle of Globex to open its orders too.
const grid = VibeFoxJSGrid.createGrid('#app', {
rowId: 'id',
height: 380,
columns: ['customer', 'city'],
data: [
{ id: 1, customer: 'ACME', city: 'Berlin', orders: [
{ date: '2026-10-01', item: 'Laptop', total: 1200 }, { date: '2026-10-12', item: 'Monitor', total: 300 }] },
{ id: 2, customer: 'Globex', city: 'Paris', orders: [{ date: '2026-09-28', item: 'Phone', total: 650 }] },
{ id: 3, customer: 'Initech', city: 'London', orders: [] },
],
masterDetail: {
rows: 'orders',
grid: { columns: ['date', 'item', { field: 'total', type: 'number' }], height: 130 },
isMaster: (row) => row.orders.length > 0,
},
});
grid.expandDetail(1);Merged cells
Equal values of the Department column merged into one cell (rowSpan: true).
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
rows.sort((a, b) => a.dept.localeCompare(b.dept));
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: [{ field: 'dept', header: 'Department', rowSpan: true }, 'name', 'city'],
});Pagination and the status bar
Pages of 10 rows with the pager and the status bar; switch pages or the page size in the pager.
const rows = Array.from({ length: 95 }, (_, i) => ({ id: i + 1, item: 'Item ' + (i + 1), qty: (i * 37) % 50 }));
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 400,
columns: ['id', 'item', { field: 'qty', type: 'number' }],
pagination: { pageSize: 10, pageSizes: [10, 25, 50] },
statusBar: true,
});
grid.setPage(2);Editing and change tracking
Change tracking
Edited cells get a marker; the status bar counts the unsaved changes. Double-click a cell and change it to add one more.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
editable: true,
statusBar: true,
columns: ['name', 'city', { field: 'salary', type: 'number' }],
});
grid.setCellValue(2, 'salary', 61000);
grid.setCellValue(4, 'city', 'Dublin');
grid.setCellValue(6, 'salary', 54000);
console.log(grid.getChanges());Fill handle
A selected cell range with the fill handle at its corner (cell selection mode). Drag the handle down to continue the series 1, 2, 3…
const rows = Array.from({ length: 8 }, (_, i) => ({ id: i + 1, day: i < 3 ? 'Monday' : '', week: i < 2 ? i + 1 : null, task: 'Task ' + (i + 1) }));
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 300,
editable: true,
selection: { mode: 'cell' },
columns: ['task', 'day', { field: 'week', type: 'number' }],
});
grid.setCellRange({ from: { id: 1, field: 'week' }, to: { id: 2, field: 'week' } });Selection and clipboard
Row selection with the check box column; three rows are selected. Click the check boxes to change the selection.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: ['name', 'dept', 'city'],
selection: { mode: 'row', multi: true, checkbox: true },
statusBar: true,
});
grid.setSelection([1, 3, 4]);Sorting, filtering and search
Sorting
Sorting by two columns: department ascending, then salary descending. Click a header to sort by it.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: ['name', 'dept', { field: 'salary', type: 'number' }],
});
grid.setSort([{ field: 'dept', dir: 'asc' }, { field: 'salary', dir: 'desc' }]);Header filters
The City column is filtered to Berlin and Paris. Click the filter button of the City header to open its menu: sorting, two conditions and the list of values.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 460,
columns: ['name', 'city', { field: 'salary', type: 'number' }],
});
grid.setFilter('city', { type: 'set', values: ['Berlin', 'Paris'] });Filter builder
The filter builder with a nested OR group.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 460,
columns: ['name', 'city', { field: 'salary', type: 'number' }, { field: 'active', type: 'boolean' }],
});
grid.setFilterModel({ op: 'and', rules: [
{ field: 'city', op: 'equals', value: 'Berlin' },
{ op: 'or', rules: [{ field: 'salary', op: '>', value: 80000 }, { field: 'active', op: 'isTrue' }] },
] });
grid.showFilterBuilder();Quick search and query syntax
The quick search salary>60000 city:berlin keeps the rows that match both terms.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 240,
statusBar: true,
columns: ['name', 'city', { field: 'salary', type: 'number' }],
});
grid.setQuickFilter('salary>60000 city:berlin');Grouping, totals and pivot
Row grouping
Rows grouped by department with the average salary in the group rows and the totals row; click a group toggle to collapse it.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 420,
columns: ['name', 'dept', 'city', { field: 'salary', type: 'number', aggregate: 'avg' }],
groupBy: ['dept'],
footer: true,
});Pivot mode
Sales by region and city (rows) and quarter (columns) with subtotals and grand totals.
const sales = [];
const regions = { Europe: ['Berlin', 'Paris', 'Madrid'], America: ['Boston', 'Toronto'] };
let n = 0;
for (const [region, cities] of Object.entries(regions)) {
for (const city of cities) {
for (let q = 0; q < 4; q++) {
n++;
sales.push({ id: n, region, city, quarter: 'Q' + (q + 1), product: n % 2 ? 'Laptops' : 'Phones', amount: 1000 + ((n * 7919) % 9000) });
}
}
}
const grid = VibeFoxJSGrid.createGrid('#app', {
data: sales,
rowId: 'id',
height: 360,
pivot: {
rows: ['region', 'city'],
columns: ['quarter'],
values: [{ field: 'amount', aggregate: 'sum', header: 'Sales' }],
},
});Formulas
Computed columns
The Total column computes =[@price]*[@qty] for every row.
const grid = VibeFoxJSGrid.createGrid('#app', {
rowId: 'id',
height: 260,
footer: true,
data: [
{ id: 1, item: 'Laptop', price: 1200, qty: 3 },
{ id: 2, item: 'Monitor', price: 300, qty: 5 },
{ id: 3, item: 'Keyboard', price: 45, qty: 12 },
{ id: 4, item: 'Mouse', price: 25, qty: 20 },
],
columns: ['item', { field: 'price', type: 'number' }, { field: 'qty', type: 'number' },
{ field: 'total', header: 'Total', type: 'number', formula: '=[@price]*[@qty]', aggregate: 'sum' }],
});Formulas in cells
Cells with formulas; the editor of the last cell shows the formula with colored references.
const grid = VibeFoxJSGrid.createGrid('#app', {
rowId: 'id',
height: 300,
editable: true,
formulas: true,
data: [
{ id: 1, label: 'January', value: 120 },
{ id: 2, label: 'February', value: 150 },
{ id: 3, label: 'March', value: 90 },
{ id: 4, label: 'Total', value: '=SUM(B1:B3)' },
{ id: 5, label: 'Average', value: '=ROUND(AVERAGE(B1:B3),1)' },
],
columns: ['label', { field: 'value', type: 'number', width: 220 }],
});
grid.beginEdit(4, 'value');Conditional formatting
A highlight rule, data bars, a three-color scale and an icon set.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 320,
columns: ['name', 'city', { field: 'salary', type: 'number', width: 180 }, { field: 'rating', type: 'number' },
{ field: 'growth', type: 'number', formula: '=[@rating]*10-25' }],
conditionalFormats: [
{ fields: ['city'], type: 'text', op: 'equals', value: 'Berlin', style: { preset: 'good' } },
{ fields: ['salary'], type: 'dataBar', gradient: true },
{ fields: ['growth'], type: 'colorScale', colors: ['#f8696b', '#ffeb84', '#63be7b'] },
{ fields: ['rating'], type: 'iconSet', icons: 'stars3' },
],
});Sparklines and range charts
Sparkline cells
Line, column and win / loss sparklines from four fields of each row.
const rows = [
{ id: 1, product: 'Laptops', q1: 120, q2: 150, q3: 90, q4: 180 },
{ id: 2, product: 'Phones', q1: 200, q2: 160, q3: 210, q4: 240 },
{ id: 3, product: 'Tablets', q1: 80, q2: 60, q3: 75, q4: 50 },
{ id: 4, product: 'Monitors', q1: 40, q2: 70, q3: 65, q4: 90 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 220,
columns: ['product', ...['q1', 'q2', 'q3', 'q4'].map((f) => ({ field: f, type: 'number', width: 90 })),
{ field: 'trend', header: 'Trend', width: 140, sparkline: { type: 'line', fields: ['q1', 'q2', 'q3', 'q4'], markers: true } },
{ field: 'bars', header: 'Bars', width: 140, sparkline: { type: 'column', fields: ['q1', 'q2', 'q3', 'q4'] } }],
});Charts of a cell range
A column chart of three quarters, drawn by the grid's own SVG chart in a panel of the grid.
const rows = [
{ id: 1, product: 'Laptops', q1: 120, q2: 150, q3: 90 },
{ id: 2, product: 'Phones', q1: 200, q2: 160, q3: 210 },
{ id: 3, product: 'Tablets', q1: 80, q2: 60, q3: 75 },
];
const grid = VibeFoxJSGrid.createGrid('#app', { data: rows, rowId: 'id', height: 320, columns: ['product', 'q1', 'q2', 'q3'] });
grid.createRangeChart({ rows: [1, 2, 3], fields: ['product', 'q1', 'q2', 'q3'], type: 'column', title: 'Sales by quarter' });Large data
Virtual scrolling
100 000 rows × 50 columns, scrolled to the middle: only the visible cells are in the page. Scroll it in both directions.
const columns = [{ field: 'id', type: 'number', pin: 'left', width: 80 }];
for (let c = 1; c <= 50; c++) columns.push({ field: 'c' + c, header: 'Col ' + c, type: 'number', width: 90 });
const rows = Array.from({ length: 100000 }, (_, i) => {
const row = { id: i + 1 };
for (let c = 1; c <= 50; c++) row['c' + c] = (i * c * 7919) % 1000;
return row;
});
const grid = VibeFoxJSGrid.createGrid('#app', { data: rows, columns, rowId: 'id', height: 340, statusBar: true });
grid.scrollToRow(50000);Natural-language queries
The query bar after the question "from Berlin or Paris, sort by salary descending": the commands are shown before they are applied. Apply them, or type your own question.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 360,
columns: ['name', 'city', 'dept', { field: 'salary', type: 'number' }],
ask: { input: true },
});
grid.ask('from Berlin or Paris, sort by salary descending', { preview: true });Theming and styling
Themes
Pick a theme in the list above the grid: light, dark, paper, ocean, sunset or graphite-dark (vibefox-js-themes.css linked for the pack themes).
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows, rowId: 'id', height: 300,
columns: ['name', 'dept', 'city', { field: 'salary', type: 'number' }],
selection: { mode: 'row', checkbox: true },
});
grid.setSelection([3]);
const picker = document.createElement('select');
for (const name of ['light', 'dark', 'paper', 'ocean', 'sunset', 'graphite-dark']) picker.add(new Option(name));
picker.onchange = () => grid.setTheme(picker.value);
document.getElementById('app').before(picker);CSS variables
Taller rows, a colored header and a custom selection color, set as CSS variables of this grid.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 360,
columns: ['name', 'dept', 'city', { field: 'salary', type: 'number' }],
styleVars: {
'row-height': '38px',
'header-bg': '#1e3a8a',
'header-fg': '#ffffff',
'row-selected-bg': '#fde68a',
},
});
grid.setSelection([2, 5]);Ready-made styles
Pick one of the nine ready-made styles in the list above the grid: default, compact, zebra, grid, minimal, cards, finance, report, spreadsheet.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
rows[1].salary = -1200;
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows, rowId: 'id', height: 320, footer: true,
columns: ['name', 'dept', { field: 'salary', type: 'number', aggregate: 'sum' }, { field: 'joined', type: 'date' }],
});
const picker = document.createElement('select');
for (const name of VibeFoxJSGrid.GRID_STYLES) picker.add(new Option(name));
picker.onchange = () => grid.setStyle(picker.value);
document.getElementById('app').before(picker);Density and size
The compact density on the page container: rows, header and paddings get smaller.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
document.getElementById('app').dataset.vfjsDensity = 'compact';
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 260,
columns: ['name', 'dept', 'city', { field: 'salary', type: 'number' }],
});Localization and RTL
Languages
The grid in Russian: load the language pack vibefox-js-grid.ru.js after the library and set locale: 'ru'. Menus, the pager and the status bar are translated.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 360,
locale: 'ru',
columns: [{ field: 'name', header: 'Имя' }, { field: 'city', header: 'Город' }, { field: 'salary', header: 'Оклад', type: 'number' }],
pagination: { pageSize: 5 },
statusBar: true,
});Right-to-left
The option rtl: true: columns start on the right, the pinned column is at the start of the row.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', {
data: rows,
rowId: 'id',
height: 300,
rtl: true,
columns: [{ field: 'name', pin: 'left' }, 'dept', 'city', { field: 'salary', type: 'number' }],
});Accessibility
Keyboard
The keyboard help dialog (Ctrl+/ or F1, or showKeyboardHelp()). Close it, click a cell and move with the arrow keys.
const rows = [
{ id: 1, name: 'Alice Brown', dept: 'Sales', city: 'Berlin', salary: 72000, joined: '2021-03-15', active: true, rating: 4 },
{ id: 2, name: 'Bob Smith', dept: 'Sales', city: 'Paris', salary: 58000, joined: '2019-11-02', active: false, rating: 2 },
{ id: 3, name: 'Carol White', dept: 'Engineering', city: 'Berlin', salary: 91000, joined: '2022-06-20', active: true, rating: 5 },
{ id: 4, name: 'Dan Green', dept: 'Engineering', city: 'London', salary: 86000, joined: '2020-01-10', active: true, rating: 3 },
{ id: 5, name: 'Eva Black', dept: 'Support', city: 'Paris', salary: 47000, joined: '2023-02-01', active: true, rating: 4 },
{ id: 6, name: 'Frank Lee', dept: 'Support', city: 'London', salary: 51000, joined: '2018-09-17', active: false, rating: 1 },
{ id: 7, name: 'Grace Kim', dept: 'Engineering', city: 'Madrid', salary: 99000, joined: '2017-05-23', active: true, rating: 5 },
{ id: 8, name: 'Henry Fox', dept: 'Sales', city: 'Madrid', salary: 63000, joined: '2024-04-08', active: true, rating: 3 },
];
const grid = VibeFoxJSGrid.createGrid('#app', { data: rows, rowId: 'id', height: 520 });
grid.showKeyboardHelp();