How to use the ra-tree-core.getIsExpanded function in ra-tree-core

To help you get started, we’ve selected a few ra-tree-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marmelab / react-admin / packages / ra-tree-ui-materialui / src / TreeNode.tsx View on Github external
const mapStateToProps = (state, { record, resource }) => {
    const hasRecord = record && record.id != undefined; // eslint-disable-line eqeqeq

    return {
        expanded: hasRecord ? getIsExpanded(state, resource, record.id) : false,
        loading: hasRecord ? getIsLoading(state, resource, record.id) : false,
        nodes: hasRecord ? getChildrenNodes(state, resource, record.id) : [],
    };
};

ra-tree-core

A treeview component without ui to use with react-admin

MIT
Latest version published 5 years ago

Package Health Score

73 / 100
Full package analysis