UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

12 lines (11 loc) 390 B
import { TableState } from "./state"; export type TableHookOptions = { singleSelect?: boolean; /** Clear all selected rows. */ clearSelection: () => void; }; /** * useTableState is a hook that creates and manages a Table's state on the * Airplane context */ export declare const useTableState: <TRowData = any>(id: string, options: TableHookOptions) => TableState<TRowData>;