Home Reference Source
import {Col} from 'better-xlsx/src/col.js'
public class | source

Col

The column of the Sheet.

const col = sheet.col(0);
col.width = 20;
col.style.fill.patternType = 'solid';
col.style.fill.fgColor = '00FF0000';
col.style.fill.bgColor = 'FF000000';
col.style.align.h = 'center';
col.style.align.v = 'center';

Member Summary

Public Members
public

Number format for all column @see NumFmt

public

Style of the column.

public

Column width [default 9.5]

Public Members

public numFmt: String source

Number format for all column @see NumFmt

public style: Style source

Style of the column.

public width: Number source

Column width [default 9.5]