Back to view formats
View formattingSharePoint Online

Custom Document Library Gallery Card

This sample uses tileProps element to format the tile layout for document libraries.

Custom Document Library Gallery Card formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

From the contributor

How to use this sample

Summary

This sample uses tileProps element to format the tile layout for document libraries.

screenshot of the sample

This format takes advantage of the tileProps property to format tiles in doclib to have metadata. To see the tiles, switch your layout to the Tiles layout after you've added the JSON.

View requirements

  • The format expect the following fields:
Field Type
Name Single line of text
Status Choice(Single Select) - expected values: Approved, Ready for Review, Draft, or Rejected
Owner People

The size of the tile can be adjusted by changing the width and height values.

Sample

Solution Author(s)
document-library-gallery-card.json Niket Jain

Version history

Version Date Comments
1.0 October 15, 2019 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.