Skip to content

@revolist/revogrid / AutoSizeColumnConfig

Type Alias: AutoSizeColumnConfig

ts
type AutoSizeColumnConfig: {
  allColumns: boolean;
  letterBlockSize: number;
  mode: ColumnAutoSizeMode;
  preciseSize: boolean;
};

Type declaration

NameTypeDescriptionDefined in
allColumnsbooleanautoSize for all columns if allColumnes true all columns treated as autoSize, worse for performance false by defaultsrc/plugins/column.auto-size.plugin.ts:42
letterBlockSizenumberassumption per characted size by default defined as 8, can be changed in this configsrc/plugins/column.auto-size.plugin.ts:47
modeColumnAutoSizeMode-src/plugins/column.auto-size.plugin.ts:36
preciseSizebooleanmake size calculation exact by default it based on assumption each character takes some space defined in letterBlockSizesrc/plugins/column.auto-size.plugin.ts:50

Defined in

src/plugins/column.auto-size.plugin.ts:34

Revogrid is a MIT-licensed open source library made by Revolist OU.