Forum Discussion

timparsons's avatar
timparsons
Brass Contributor
May 29, 2019

Best way to add a sharepoint list to custom webpart?

I'm trying to add a SharePoint list into a webpart so I can use React to drag and drop the rows around. what's the best way? I've not used TypeScript before so it's confusing me.

1 Reply

  • timparsons 

     

    You may want to use the UI Fabric React component: Details List, which you can configure to have the items be "draggable" out of the box. You'll need to write some code to get your list columns and items and load them into the Details List component. You don't necessarily need to use TypeScript, you can just use JavaScript if you want.

    https://developer.microsoft.com/en-us/fabric#/controls/web/detailslist/draganddrop

Resources