sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

Add render options for ListItemAttachments. Closes #249

Open Ateina opened this issue 1 month ago • 0 comments

Q A
Bug fix? [ ]
New feature? [ x ]
New sample? [ ]
Related issues? fixes #249

This PR adds a new displayMode property to the ListItemAttachments control, allowing users to customize how attachments are rendered. Users can now choose between three display modes:

  • Tiles (default) - Displays attachments as tiles/thumbnails using DocumentCard components
  • DetailsList - Displays attachments in a list format with file type icons, file names, and delete actions
  • DetailsListCompact - Displays attachments in a compact list format with reduced row height and padding

Exa,ples: ListItemAttachmentsDetailsList ListItemAttachmentsDetailsListCompact

Ateina avatar Dec 13 '25 14:12 Ateina