The properties of number columns are as follows.

  • Default Properties : name, text, type, editable, visible, align, width
  • Date property : format
  • Only .(dot) or / (slash) or - (dash) are supported as date separators..
// Examples
let columns = [
      { name : "date1", header: { text:"date1" }, type: 'date', width : 100, align: 'right', format: 'MM.dd/yyyy' }
    , { name : "date2", header: { text:"date2" }, type: 'date', width : 100 }
];

grid1 = new TbsGrid('grid1');
let options = {};
grid1.setGrid(columns, options);
grid1.setData(grid_data);

format property.

  • The date type must retrieve data in 8 digits.
  • The date format is basically indicated by the value described in dayPattern in the confg file.

align property.

  • The date type must retrieve data in 8 digits.
  • Property values : left, right, center.
  • Default value is center.