@athosws/react-components
Version:
This is a set of useful ReactJS components developed by Athos.\n Email:ladiesman217.as@gmail.com
23 lines (21 loc) • 595 B
text/typescript
import { TreeType } from "./tree";
export interface ATHOSTreeviewPropsI {
styles?: {
generalClassName?: string;
selected?: {
bgColor?: string;
bgcolorIndex?: (index: number) => string;
color?: string;
colorIndex?: (index: number) => string;
};
};
isLoading?: boolean;
data: TreeType[];
selected?: string[];
onAdd?: (name: string, parentId?: string) => void;
onDelete?: (id: string) => void;
onSelect?: (id: string) => void;
onMove?: (id: string, parentId: string) => void;
fillWidth?: boolean;
levelIndicator?: "darken" | "brighten";
}