i have found example of dnd on Ant.design website, but how can I make only certain rows dragable?
https://codesandbox.io/s/9uq4r
Update: I have tree structure (datasource with children). My goal is to dnd first level children inside parent (0 level data).
Update2: I managed to achieve it by changing:
moveRow = (dragIndex, hoverIndex) => {
const { data } = this.state;
const dragRow = data[0].children[dragIndex];
this.setState(
update(this.state, {
data: {0: {
children: {
$splice: [[dragIndex, 1], [hoverIndex, 0, dragRow]],
},}}
}),
)
};