UNPKG

e-virt-table

Version:

A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.

23 lines (22 loc) 552 B
import type Context from './Context'; export default class Editor { private editorEl; private inputEl; private enable; private cellTarget; private selectorArrStr; ctx: Context; private drawY; private drawX; constructor(ctx: Context); private init; private isInSelectorRange; private initTextEditor; private autoSize; private startEditByInput; private doneEditByInput; startEdit(): void; editCell(rowIndex: number, colIndex: number): void; doneEdit(): void; destroy(): void; }