pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.74k stars 834 forks source link

Comments card display on hover/click of comments icon (w/ # of comments) #566

Closed duffymike closed 1 year ago

duffymike commented 2 years ago

What Kind of Sample (view or column format)

Column format

Sample Description (what should it do)

Extend the # of comments display with a card (hover or click) that displays comments for the list item. Purpose to enable you to see the comments icon with the # of comments (https://github.com/pnp/List-Formatting/tree/master/column-samples/comment-count) on a list item and then be able to quickly view / access without having to open the item.

Are you Willing to Help?

Willing, but would need to get up to speed on json

ganesh-sanap commented 1 year ago

@duffymike Unfortuntely, it is not possible to read list item comments using JSON formatting yet. So, we cannot use JSON formatting to show the item comments in hover card / popup.

You have to develop SPFx field customizer for this.

  1. Documentation: Build your first Field Customizer extension
  2. REST API to get list item comments: GET SharePoint list item comments using REST API