How to use the ra-tree-core.crudMoveNode 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
resource: props.resource,
            data: {
                ...draggedRecord,
                [props.parentSource]: nodeParent,
                [props.positionSource]: nodePosition,
            },
            parentSource: props.parentSource,
            positionSource: props.positionSource,
            previousData: draggedRecord,
            basePath: props.basePath,
            refresh: false,
            redirectTo: undefined,
        };

        if (props.undoable) {
            props.startUndoable(crudMoveNodeAction(actionPayload));
        } else {
            props.crudMoveNode(actionPayload);
        }
    },
};

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