ra-datagrid-sortable
v1.0.2
Published
Drag'n'drop sortable datagrid for react-admin
Downloads
4
Readme
ra-datagrid-sortable
Drag'n'drop sortable datagrid for react-admin base on react-sortablejs
Installation
npm install ra-datagrid-sortable
// or
yarn add ra-datagrid-sortable
Usage
import React, { FC } from 'react';
import { BooleanField, List } from "react-admin";
import { DatagridSortable } from "ra-datagrid-sortable";
const MyResourceList = (): FC => {
return (
<List>
<DatagridSortable orderedBy={'order'}>
<TextField source={'id'} />
<TextField source={'foo'} />
<TextField source={'bar'} />
</DatagridSortable>
</List>
);
}
export default MyResourceList;