forked from zicloud/bigscreen_admin
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import type { LinkedList } from 'parchment';
|
|
import Block from '../blots/block.js';
|
|
import Container from '../blots/container.js';
|
|
declare class TableCell extends Block {
|
|
static blotName: string;
|
|
static tagName: string;
|
|
static create(value: string): HTMLElement;
|
|
static formats(domNode: HTMLElement): string | null | undefined;
|
|
next: this | null;
|
|
cellOffset(): number;
|
|
format(name: string, value: string): void;
|
|
row(): TableRow;
|
|
rowOffset(): number;
|
|
table(): import("parchment").Parent;
|
|
}
|
|
declare class TableRow extends Container {
|
|
static blotName: string;
|
|
static tagName: string;
|
|
children: LinkedList<TableCell>;
|
|
next: this | null;
|
|
checkMerge(): boolean;
|
|
optimize(context: {
|
|
[key: string]: any;
|
|
}): void;
|
|
rowOffset(): number;
|
|
table(): import("parchment").Parent;
|
|
}
|
|
declare class TableBody extends Container {
|
|
static blotName: string;
|
|
static tagName: string;
|
|
children: LinkedList<TableRow>;
|
|
}
|
|
declare class TableContainer extends Container {
|
|
static blotName: string;
|
|
static tagName: string;
|
|
children: LinkedList<TableBody>;
|
|
balanceCells(): void;
|
|
cells(column: number): any[];
|
|
deleteColumn(index: number): void;
|
|
insertColumn(index: number): void;
|
|
insertRow(index: number): void;
|
|
rows(): any[];
|
|
}
|
|
declare function tableId(): string;
|
|
export { TableCell, TableRow, TableBody, TableContainer, tableId };
|