PromoCursed/node_modules/rc-table/es/FixedHolder/index.d.ts

24 lines
906 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import * as React from 'react';
import type { HeaderProps } from '../Header/Header';
import type { Direction } from '../interface';
export interface FixedHeaderProps<RecordType> extends HeaderProps<RecordType> {
className: string;
noData: boolean;
maxContentScroll: boolean;
colWidths: readonly number[];
columCount: number;
direction: Direction;
fixHeader: boolean;
stickyTopOffset?: number;
stickyBottomOffset?: number;
stickyClassName?: string;
onScroll: (info: {
currentTarget: HTMLDivElement;
scrollLeft?: number;
}) => void;
children: (info: HeaderProps<RecordType>) => React.ReactNode;
}
/** Return a table in div as fixed element which contains sticky info */
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<FixedHeaderProps<any> & React.RefAttributes<HTMLDivElement>>>;
export default _default;