Reputation: 23
I was wondering how to format the DetailsList so that a certain column renders a clickable link, just like OneDrive and SharePoint Online do for the filename. Is this a custom renderer function for that column that returns a component or is this a prop I can pass to the DetailsList component?
Upvotes: 2
Views: 4962
Reputation: 476
You can find detailed information along with some code samples at this location: https://developer.microsoft.com/en-us/fabric#/components/detailslist/customitemcolumns
To answer your question: onRenderItemColumn
is the prop which gives you the custom renderer to wrap the content of a specific column in anything you want (check the link above to see how).
Upvotes: 3