@metacell/geppetto-meta-ui
Version:
React components from geppetto-meta to create neuroscience applications and visualize data.
60 lines (59 loc) • 2.43 kB
TypeScript
export default Tree;
declare class Tree extends React.Component<any, any, any> {
constructor(props: any);
updateTreeData(treeData: any): void;
expandAll(): void;
collapseAll(): void;
state: {
treeData: any;
};
expand(expanded: any): void;
handleClick(event: any, rowInfo: any): void;
getNodeProps(rowInfo: any): {
onClick(event: any): void;
buttons: any;
style: {
cursor: string;
};
className: string;
title: any;
};
render(): import("react/jsx-runtime").JSX.Element;
}
declare namespace Tree {
namespace defaultProps {
const toggleMode: boolean;
const activateParentsNodeOnClick: boolean;
function getNodesProps(): void;
const controls: any;
function onChange(): void;
function searchMethod(): void;
const searchFocusOffset: number;
function searchFinishCallback(): void;
}
namespace propTypes {
export const treeData: PropTypes.Validator<any[]>;
export const style: PropTypes.Validator<object>;
export const rowHeight: PropTypes.Validator<any>;
export const handleClick: PropTypes.Validator<(...args: any[]) => any>;
export const getButtons: PropTypes.Validator<(...args: any[]) => any>;
const toggleMode_1: PropTypes.Requireable<boolean>;
export { toggleMode_1 as toggleMode };
const activateParentsNodeOnClick_1: PropTypes.Requireable<boolean>;
export { activateParentsNodeOnClick_1 as activateParentsNodeOnClick };
const getNodesProps_1: PropTypes.Requireable<(...args: any[]) => any>;
export { getNodesProps_1 as getNodesProps };
const controls_1: PropTypes.Requireable<PropTypes.ReactElementLike>;
export { controls_1 as controls };
const onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
export { onChange_1 as onChange };
const searchMethod_1: PropTypes.Requireable<(...args: any[]) => any>;
export { searchMethod_1 as searchMethod };
const searchFocusOffset_1: PropTypes.Requireable<number>;
export { searchFocusOffset_1 as searchFocusOffset };
const searchFinishCallback_1: PropTypes.Requireable<(...args: any[]) => any>;
export { searchFinishCallback_1 as searchFinishCallback };
}
}
import React from "react";
import PropTypes from "prop-types";