Vue-DataGrid Examples

This example shows how you can define columns for your datagrid. This is a minimal implementation of a grid on a page

The most important thing is defining the columns. Columns have at least 3 parameters set:

  • ID
  • Label
  • Value expression

Note that the value expression can return any type. You can later define a format expression for displaying that value using .withFormat()

In this example, the Age and Birthday columns are actually derived from the same data property of the data model: dateOfBirth

Name Age Birthday
Gilbert Harris34 years8/6
Mila Brown35 years5/10
Walter Watkins44 years11/8
Christina Lee40 years7/6
Sophia N. Jenkins41 years23/2
Luisa Flores35 years10/9
Neil Crawford32 years3/6
Douglas W. Bailey40 years27/7
Bruce Ellis29 years28/9
Kimberly Foster37 years5/9
Rose Francis37 years6/6
Amanda M. Ward43 years15/8
Brandi Morgan33 years20/1
Troy Peterson29 years24/2
Harvey V. Mcdonald32 years26/4
Lucille Bryant41 years10/5
Beatrice Bryant26 years26/8
Gabriela Fletcher26 years17/9
Alexia Stanley29 years15/6
Bruce Patterson33 years9/9