on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
41 lines (40 loc) • 1.03 kB
TypeScript
export interface TableStyle {
id: string;
name: string;
className: string;
preview: string;
description: string;
}
export interface TableTheme {
id: string;
name: string;
className: string;
preview: string;
description: string;
}
export declare const TABLE_STYLES: TableStyle[];
export declare const TABLE_THEMES: TableTheme[];
export declare const CELL_ALIGNMENT_OPTIONS: {
value: string;
label: string;
icon: string;
}[];
export declare const VERTICAL_ALIGNMENT_OPTIONS: {
value: string;
label: string;
icon: string;
}[];
export declare const BORDER_STYLES: {
value: string;
label: string;
icon: string;
}[];
export declare const BORDER_WIDTHS: {
value: string;
label: string;
}[];
export declare class TableStyles {
setAlignment(cell: HTMLElement, align: 'left' | 'center' | 'right'): void;
setVerticalAlignment(cell: HTMLElement, align: 'top' | 'middle' | 'bottom'): void;
setBackground(cell: HTMLElement, color: string): void;
}