@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
15 lines (14 loc) • 767 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;
optionClassName?: (option: OPTION_TYPE) => string;
toIdentifier?: (v: OPTION_TYPE) => ID_TYPE;
isOptionDraggable?: (option: OPTION_TYPE) => boolean;
onOptionClick?: (option: OPTION_TYPE, event: React.MouseEvent<HTMLDivElement>) => void;
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;