UNPKG

@leankylin-sheet/core

Version:

LeankylinSheet is a drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets

15 lines (14 loc) 1.32 kB
import { Context } from "../context"; import { CommonOptions } from "./common"; export declare function freeze(ctx: Context, type: "row" | "column" | "both", range: { row: number; column: number; }, options?: CommonOptions): void; export declare function insertRowOrColumn(ctx: Context, type: "row" | "column", index: number, count: number, direction: "lefttop" | "rightbottom", options?: CommonOptions): void; export declare function deleteRowOrColumn(ctx: Context, type: "row" | "column", start: number, end: number, options?: CommonOptions): void; export declare function setRowHeight(ctx: Context, rowInfo: Record<string, number>, options?: CommonOptions, custom?: boolean): void; export declare function setColHidden(ctx: Context, colhidden: Record<string, number>, options?: CommonOptions): void; export declare function setRowHidden(ctx: Context, rowhidden: Record<string, number>, options?: CommonOptions): void; export declare function setColumnWidth(ctx: Context, columnInfo: Record<string, number>, options?: CommonOptions, custom?: boolean): void; export declare function getRowHeight(ctx: Context, rows: number[], options?: CommonOptions): Record<number, number>; export declare function getColumnWidth(ctx: Context, columns: number[], options?: CommonOptions): Record<number, number>;