SPFx + Office Fabric UI + DetailsList
Category
- [X] Question
- [ ] Typo
- [ ] Additional article idea
- [] Checked items have no spaces between the [] (delete this line)
Question
Hi,
I have a custom list and want to the items in detailsList control of Office Fabric UI. Can someone please let me know how to do this with an example. I went through the Office Fabric UI page but not able to understand how we can fetch items in practical scenario from custom SharePoint list and bind it to detailsList?
Thank you in advance.
Regards, Sanjay
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
This is a fairly loaded question. Sounds like you may need to spend some more time learning SharePoint Framework and how to make calls against SharePoint's REST API.
The SPFx documentation walks you through how to make calls to SharePoint to retrieve items from lists. I suggest running through these tutorials.
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/connect-to-sharepoint
From there, it should be pretty straightforward on how to bind data to a UI Fabric Details List. If you still struggle, there are some open source samples you can view.
https://github.com/SharePoint/sp-dev-fx-webparts/ .
Closing this issue as "answered". If you encounter a similar issue(s), please open up a new issue. See our wiki for more details: Issue-List: Our approach to closed issues