summaryrefslogtreecommitdiffstats
path: root/grid/index.js
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2020-11-17 19:56:58 +0100
committerivarlovlie <git@ivarlovlie.no>2020-11-17 19:56:58 +0100
commit9b6223d35ce090af1f8ea5d7ee63a629bb2a023f (patch)
tree8b9dfbb2f7ffa18727d7a524a7136b295047b484 /grid/index.js
parentb7196aea72ccea2a26ad9c7cac1fac0da80b6d26 (diff)
downloadweb-components-9b6223d35ce090af1f8ea5d7ee63a629bb2a023f.tar.xz
web-components-9b6223d35ce090af1f8ea5d7ee63a629bb2a023f.zip
0.0.2
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",
},