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
Luisa Hicks36 years26/1
Alexia Foster42 years26/5
Aaron Long44 years15/0
Melody Newton33 years18/9
Arthur Morgan30 years15/8
Ashley Smith32 years3/10
Tracey Wheeler30 years5/6
Patricia Miller38 years18/0
Troy Simon28 years1/3
Stephanie Gordon37 years6/1
Daisy Shaw36 years2/7
Valentina Thomas31 years20/5
Patricia Simon41 years13/9
Valentina Flores31 years24/8
Anabelle Norman35 years24/2
Monique U. Lopez33 years17/2
Molly Young34 years15/10
Samuel Parks25 years16/4
Clarence Ward26 years22/9
Paul Martinez35 years9/0