mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
807 B
TypeScript
28 lines
807 B
TypeScript
// Type definitions for reactabular-sticky 8.14
|
|
// Project: http://reactabular.js.org/
|
|
// Definitions by: Marcos Junior <https://github.com/junalmeida>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.0
|
|
|
|
import * as Table from "reactabular-table";
|
|
import * as React from "react";
|
|
|
|
export interface StickyHeaderProps {
|
|
tableBody: HTMLElement | null;
|
|
onScroll?: (e: Partial<UIEvent>) => void;
|
|
}
|
|
|
|
export class Header extends React.Component<StickyHeaderProps & Table.HeaderProps> {
|
|
ref: HTMLElement;
|
|
container: HTMLElement;
|
|
}
|
|
|
|
export interface StickyBodyProps {
|
|
tableHeader: HTMLElement | null;
|
|
onScroll?: (e: Partial<UIEvent>) => void;
|
|
}
|
|
|
|
export class Body extends React.Component<StickyBodyProps & Table.BodyProps> {
|
|
ref: HTMLElement;
|
|
}
|