Skip to main content
Version: 1.0.5

LibraryAttachments

@spartanfx/react v1.0.5


@spartanfx/react / LibraryAttachments

Variable: LibraryAttachments

const LibraryAttachments: React.FunctionComponent<ILibraryAttachmentsProps>

Renders a list of attachments from a SharePoint document library.

Supports uploading new files, renaming before upload, soft deletion, and filtering attachments by parent item ID and optional section.

Example

<LibraryAttachments
libraryName="ProjectDocuments"
lookupFieldName="ProjectId"
sectionFieldName="Section"
section="Planning"
disabled={false}
allowMultiple
/>