Skip to content

WorkSheet

new WorkSheet(jsf: Worksheet, wb: Workbook): WorkSheet;
ParameterType
jsfWorksheet
wbWorkbook

WorkSheet

PropertyType
_size[number, number]
cellsMap<number, Cell>
columnsGridSize[]
colWidthsRecord<number, number> | null
comments?ThreadedComment[]
defaultsWorksheetDefaults
drawings?Drawing[]
hidden0 | 1 | 2
merged_cellsstring[]
namestring
notes?Note[]
rowsGridSize[]
views?WorksheetView[]
workbookWorkbook
getCellByCoords(row: number, col: number): Cell | null;
ParameterType
rownumber
colnumber

Cell | null


getComments(options?: {
excludeReplies?: boolean;
excludeResolved?: boolean;
}): ThreadedComment[];

Gets the worksheet’s threaded comments with optional filtering.

ParameterTypeDescription
options{ excludeReplies?: boolean; excludeResolved?: boolean; }Filtering options for the comments. Can be combined.
options.excludeReplies?booleanWhen true, excludes any comments that are replies to other comments. Defaults to false.
options.excludeResolved?booleanWhen true, excludes comments marked as resolved. Defaults to false.

ThreadedComment[]


getNotes(): Note[];

Gets the worksheet’s notes.

Note[]


getSize(): [number, number];

[number, number]


nextValueCellByCoords(
row: number,
col: number,
dir: "left" | "right" | "up" | "down"): Cell | null;
ParameterType
rownumber
colnumber
dir"left" | "right" | "up" | "down"

Cell | null