Skip to content

Add render options for ListItemAttachments. Closes #249#2081

Merged
joaojmendes merged 3 commits intopnp:devfrom
Ateina:249-ListItemAttachments-customize-render-options
Feb 2, 2026
Merged

Add render options for ListItemAttachments. Closes #249#2081
joaojmendes merged 3 commits intopnp:devfrom
Ateina:249-ListItemAttachments-customize-render-options

Conversation

@Ateina
Copy link
Copy Markdown
Contributor

@Ateina Ateina commented Dec 13, 2025

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

@joaojmendes joaojmendes self-assigned this Feb 2, 2026
@joaojmendes
Copy link
Copy Markdown
Collaborator

@Ateina Thank you for the improvement!

@joaojmendes joaojmendes added the status:fixed-next-drop Issue will be fixed in upcoming release. label Feb 2, 2026
@joaojmendes joaojmendes added this to the 3.24.0 milestone Feb 2, 2026
@joaojmendes joaojmendes merged commit e54c836 into pnp:dev Feb 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:fixed-next-drop Issue will be fixed in upcoming release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants