JuniorDev
JuniorDev

Reputation: 23

Office UI Fabric - DetailsList and clickable column

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

Answers (1)

Vitalie Braga
Vitalie Braga

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

Related Questions