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.

25 lines (24 loc) 618 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; private cancel; constructor(ctx: Context); private init; private isInSelectorRange; private initTextEditor; private autoSize; private startEditByInput; private doneEditByInput; startEdit(ignoreValue?: boolean): void; editCell(rowIndex: number, colIndex: number): void; doneEdit(): void; clearEditor(): void; destroy(): void; }