B
Bonzai 2
Web Parts

Documents Table

Display documents in a paginated table format with configurable columns for name, modified date, author, size, and type.

DocumentsFeature Parity: 95%

Get Documents Table Working in 3 Steps

10-20 minutes

Prerequisites

  • Bonzai 2 package installed on your site
  • A document library with files
1

Add the web part

Edit your page and add "Bonzai Documents Table Rollup" from the Bonzai category.

2

Select a library

Choose your document library from the List picker in the property pane.

3

Configure columns

Toggle which columns to show (Name, Modified, Author, Size, Type) and set items per page.

When to Use This Web Part

Use this when you need to...

  • Display documents in a structured table
  • Show metadata columns (author, modified, size, type)
  • Create a file browser experience
  • Provide a compact document listing

Best page locations

  • Document library pages — structured browsing
  • Admin pages — file management
  • Archive pages — historical documents
  • Knowledge base pages — organized files

Consider alternatives when...

  • Visual document display — use Documents Rollup
  • Full search — use Document Portal
  • Card-based layouts — use Documents Rollup

Related web parts:

Documents Rollupcard-based or list display with thumbnailsDocument Portalsearch and refinement

Common Configurations

Copy these ready-to-use configurations:

Full Document Table

All columns visible with pagination

Best for: Document library page
Configuration
titleDocuments
showNameOn
showModifiedOn
showAuthorOn
showSizeOn
showTypeOn
itemsPerPage20

Compact File List

Name and modified date only

Best for: Dashboard widget
Configuration
titleRecent Files
showNameOn
showModifiedOn
showAuthorOff
showSizeOff
itemsPerPage10

Admin File View

Size and type for file management

Best for: Admin pages
Configuration
titleFile Manager
sortBysize
showNameOn
showSizeOn
showTypeOn
itemsPerPage25

Best Practices

Choose relevant columns

Only show columns that are useful for your audience. Hiding unnecessary columns makes the table cleaner.

Set reasonable page size

10-20 items per page works well. Too many items can slow down the page.

Use Show More link

Add a Show More URL to link to the full document library for users who need to browse more files.

Troubleshooting

Still need help? Contact Bonzai Support


Reference

Document Library Schema

Documents Table uses standard document library fields. No custom columns are required, but you can add a Promoted/Featured column to support promoted filtering.

  1. Select an existing document library with files.
  2. Optional: add a Featured (Yes/No) or PromotedState (Number) field for promoted filtering.
  3. Ensure documents are published and accessible to viewers.
ColumnTypeRequiredNotes
TitleSingle line of textYesDefault library field
FileLeafRefSingle line of textYesFile name (built-in)
FileRefHyperlinkYesServer-relative path (built-in)
ModifiedDate/TimeYesUsed for sorting
CreatedDate/TimeNoFallback sort
FeaturedYes/NoNoOptional promoted filter (PromotedState also supported)
PromotedStateNumberNoOptional promoted filter (SharePoint system field)

Property Pane Configuration

Title Settings

PropertyTypeDescription
titleTextWeb part title displayed above the table
titleUrlTextOptional URL to make the title clickable
titleIconOptionDropdownTitle icon mode: Custom or None
titleIconNameIcon PickerFluent UI icon picker (e.g., Table)
titleIconUrlTextCustom icon URL (overrides icon name)
descriptionText (Multiline)Optional description below the title
showMoreTextTextText for the footer link
showMoreUrlTextURL for the footer link

Data Source Settings

PropertyTypeDescription
siteUrlTextSite URL where the library is located (empty = current site)
listNameList PickerDocument library to display files from
sortByDropdownSort by: Name, Modified Date, Created Date, or File Size
showPromotedItemsToggleShow only promoted/featured documents

Column Visibility

PropertyTypeDefaultDescription
showNameToggleOnShow the document name column
showModifiedToggleOnShow the modified date column
showAuthorToggleOnShow the author column
showSizeToggleOnShow the file size column
showTypeToggleOffShow the file type column

Display Settings

PropertyTypeDescription
itemsPerPageSlider (5-50)Number of documents to display per page
showPagingToggleShow pagination controls
showTableHeadersToggleShow column headers in the table
fixedHeightSlider (0-800)Fixed height in pixels (0 = auto height)
chromeTypeDropdownChrome type: None, Title Only, Border Only, Title and Border

Features Checklist

  • ✅ Tabular document display
  • ✅ Configurable column visibility (Name, Modified, Author, Size, Type)
  • ✅ Multiple sort options
  • ✅ Pagination support
  • ✅ Show table headers toggle
  • ✅ Promoted items support
  • ✅ Custom title with icon and link
  • ✅ Show more link
  • ✅ Fixed height option