Skip to content

guillemfondin/ra-datagrid-sortable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 { TextField, 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;

About

Drag n drop sortable datagrid for react admin

Resources

License

Stars

Watchers

Forks

Packages

No packages published