createColumnHeaderCell method

SimpleCell createColumnHeaderCell(
  1. SimpleTableColumn column
)

Implementation

SimpleCell createColumnHeaderCell(SimpleTableColumn column) {
  final cell = SimpleCell()
    ..text = column.caption
    ..width = '${column.width}px';
  if (column.sortable) {
    cell.addCssClass('Sortable');
  }
  final vAlign = column.vAlign;
  if (vAlign == 'center') {
    cell.nodeRoot.style.justifyContent = 'center';
  }
  if (vAlign == 'right') {
    cell.nodeRoot.style.justifyContent = 'flex-end';
  }
  cells.add(cell);
  add(cell);
  return cell;
}