summaryrefslogtreecommitdiffstats
path: root/grid/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'grid/index.js')
-rw-r--r--grid/index.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/grid/index.js b/grid/index.js
index ca61d83..8ee315f 100644
--- a/grid/index.js
+++ b/grid/index.js
@@ -3,7 +3,12 @@ import Grid from "./src/grid";
const grid = new Grid({
data: [
{ id: "1", firstName: "Ivar", lastName: "Løvlie" },
- { id: "2", firstName: "Sebastian", lastName: "" },
+ {
+ id: "2",
+ firstName:
+ "SebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastianSebastian",
+ lastName: "",
+ },
{ id: "3", firstName: "Heidi", lastName: "" },
{ id: "4", firstName: "Frank", lastName: "" },
{ id: "5", firstName: "Ivar", lastName: "Løvlie" },
@@ -31,10 +36,11 @@ const grid = new Grid({
{
dataId: "firstName",
minWidth: "350px",
+ maxWidth: "350px",
columnName: "Fornavn",
},
{
- cellValue: (row) => row.lastName,
+ dataId: "lastName",
minWidth: "150px",
columnName: "Etternavn",
},