UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

20 lines (19 loc) 716 B
/** * recursive function to apply change on all data and support attr mapping * @param {Array<Object>} items is the list of pure items, your data * @param {Object} props the configuration of the Tree container * @return {Array} of items ready to be put as the structure of TreeView component */ export function transform(items: Array<Object>, props: Object, parent: any): any[]; export function mapStateToProps(state: any, ownProps: any): { data: any; }; export const DISPLAY_NAME: "Container(TreeView)"; export namespace DEFAULT_PROPS { let idAttr: string; let nameAttr: string; let childrenAttr: string; } export const DEFAULT_STATE: any; declare const _default: any; export default _default;