Skip to main content
Version: 2.1.4

VersionHistoryForm

3p-core v2.1.4


3p-core / VersionHistoryForm

Variable: VersionHistoryForm

const VersionHistoryForm: React.FunctionComponent<IVersionHistoryProps>

Displays a panel showing the version history of a SharePoint list item.

Internally uses the legacy SharePoint _layouts/versions.aspx page to extract version metadata and changed fields. Parsed results are rendered in a Fluent UI DetailsList.

Remarks

This component is helpful for end users and auditors who want to view field-level changes over time.

Example

<VersionHistoryForm
listName="Documents"
itemId={42}
webPartContext={context}
sp={sp}
onDismiss={() => setShowPanel(false)}
/>