import React from "react"; import { SuperTable } from "./SuperTable"; import { ColumnSortBy, EditColumnCallback, TableColumn, TableColumnDisplay, TableColumnFormatter, TablePlainColumn } from "./TableProps"; export declare class Column { /** * Column data */ data: TablePlainColumn; /** * On edit callback */ onEditCallback?: EditColumnCallback; /** * Sort by options */ sortByOptions: Partial; /** * Constructor */ constructor(key: string, heading: React.ReactNode); /** * Mark as sortable */ sortable(name?: string): this; /** * Get sort by options */ getSortByOptions(): ColumnSortBy; /** * Merge the given column data with current data */ merge(column: Partial): this; /** * Set formatter */ formatter(formatter: TableColumnFormatter): this; /** * Mark as centered */ centered(): this; /** * Align the column */ align(align: React.CSSProperties["textAlign"]): this; /** * Set width */ width(width: number): this; /** * Set sortable */ display(display: TableColumnDisplay): this; /** * Set column settings */ settings(settings: any): this; /** * Set column class name */ className(className: string): this; /** * Set column style */ style(style: React.CSSProperties): this; /** * Set column heading style */ headingStyle(style: React.CSSProperties): this; /** * Set heading component */ headingComponent(headingComponent: React.FC): this; /** * Prepare column */ prepare(prepare: TablePlainColumn["prepare"]): this; /** * Validate column */ validate(validate: TablePlainColumn["validate"]): this; /** * Set column default value */ defaultValue(value: any): this; /** * Get column data */ getData(): TablePlainColumn; /** * Get display mode */ getDisplayMode(): TableColumnDisplay; /** * Get column key */ get key(): string; /** * Set column heading */ setHeading(heading: React.ReactNode): this; /** * Get column heading */ get heading(): React.ReactNode; /** * Get formatter */ getFormatter(): any; /** * Render cell contents */ render({ row, rowIndex, columnIndex, superTable }: { row: any; rowIndex: any; columnIndex: any; superTable: any; }): any; /** * Get cell class name */ getCellClassName(): string; /** * Get cell styles */ getCellStyles(): any; /** * Get heading styles */ getHeadingStyles(): any; /** * Get heading content */ getHeadingContent(): any; /** * Get common styles between heading and cell */ getCommonStyles(): React.CSSProperties; /** * validate current column */ validateColumn(superTable: SuperTable): true; } //# sourceMappingURL=Column.d.ts.map