sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFx + Office Fabric UI + DetailsList

Open sanjayadsure opened this issue 6 years ago • 3 comments

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

sanjayadsure avatar Feb 06 '20 18:02 sanjayadsure

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Feb 06 '20 18:02 msft-github-bot

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/ .

bcameron1231 avatar Feb 06 '20 18:02 bcameron1231

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

msft-github-bot avatar Feb 09 '20 23:02 msft-github-bot