sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
Add render options for ListItemAttachments. Closes #249
| 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: