Skip to content

Views & Sorting

The card has three regions:

  1. Header — card title (configurable), file icon, and a Download All link on the right when at least one file is present.
  2. Body — the file list (or tile grid), with a sort combobox above the list.
  3. Footer — upload area with optional hint lines about allowed extensions and max size.
Smarter Files component with header, body, and footer regions called out

Each row shows: file-type icon, file name (clickable preview), formatted size, date, optional category label, and an action menu on the right. Private files display a small lock icon next to the name.

Smarter Files list view with two files and Download All Files link

Files are rendered as a responsive grid of cards. Each tile has a file-type icon, the file name, and the formatted size.

Smarter Files tile view showing files as a responsive grid of cards

The admin sets the default view via the Display Mode design property in App Builder (List or Tiles).

Above the file list there is a combobox (no visible label) that lets users re-sort at runtime. Sorting is performed client-side on the already-loaded list — no server round-trip.

ValueBehaviour
date-newestDate Added (newest first) — default
date-oldestDate Added (oldest first)
size-largestLargest first (handy for surfacing real attachments above small signature images)
size-smallestSmallest first
name-azName A → Z
name-zaName Z → A
Sort dropdown open showing the six sort options

The admin sets the default via the Default Sort Order design property. Users can override at runtime — their choice persists for that record page during the session.

When Initial Files Displayed is greater than 0 and the record has more files than the limit, a “Show All” button appears below the list. Clicking it expands the view; clicking again collapses it.

File list collapsed to the initial display count with a Show All Files link below
StateTrigger
EmptyNo files match the user’s visibility — a friendly empty-state message is shown.
Missing AccessThe user lacks the Apex class access required to call TucarioFileDownloadController — a lock icon and a help message render in place of the file list.
Smarter Files empty state with upload prompt