@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
13 lines (12 loc) • 620 B
TypeScript
import * as React from 'react';
import { ReactNode } from 'react';
export type ReorderDraggableProps<OPTION_TYPE, ID_TYPE extends number | string> = {
order: OPTION_TYPE[];
onChange: (newOrder: OPTION_TYPE[]) => void;
renderOption: (option: OPTION_TYPE, index: number) => ReactNode;
toIdentifier?: (v: OPTION_TYPE) => ID_TYPE;
isOptionDraggable?: (option: OPTION_TYPE) => boolean;
disabled?: boolean;
style?: React.CSSProperties;
};
export declare function ReorderDraggable<OPTION_TYPE, ID_TYPE extends number | string>(props: ReorderDraggableProps<OPTION_TYPE, ID_TYPE>): React.JSX.Element;