Skip to content
MyAppBuilder
StableDataVersion 1

Cards

Overview

Shows records as tidy cards with an image, title, subtitle, a coloured badge and a few details. The quickest way to get a good-looking catalogue, team list or project overview.

Displays records as cards with an image, title and details.

When to use

  • Product or service catalogue with photo, name and price
  • Team directory with photo, role and phone
  • Projects with a status badge and client name
  • A compact list of search results on a phone

When not to use

  • Dense numeric data: use a Table
  • A layout that differs from image/title/details: use a List and design your own item

Quick start

  1. Add Cards and choose the entity in Properties → Data
  2. Set Title field, Subtitle field and, if you have one, Image field
  3. Pick a Badge field (a Select such as Status gets automatic colours) and a few Detail fields
  4. Set Cards per row and Cards per page
  5. Add On Row Click → Navigate to the details page, or set a Card button text with On Click actions

Properties

Titletext (bindable)

Heading shown above the cards. Leave empty for none. Bindable, so it can include dynamic text such as the customer's name.

Example: Open jobs

Compact listboolean

Switches from a grid of tall cards to a single column of short rows with a small thumbnail — better for phones and long lists.

Default: false

Title fieldfield

The field shown as the main text of each item. Defaults to the entity's display field (usually Name or Title).

Example: name

Subtitle fieldfield

Secondary text under the title, such as a category, client or email.

Example: category

Image fieldfield (image, url)

An Image field (or a URL field pointing at an image) shown at the top of each card. Cards without a picture show a placeholder icon.

Badge fieldfield

Shown as a pill in the corner. Select fields get a colour per option; other fields show as a neutral badge.

Example: status

Detail fieldsfields

Up to a handful of extra fields listed as label/value pairs on the card. Keep it to 2–4 for readability.

Example: price, stock, supplier

Cards per rownumber (1–6)

Maximum cards side by side on wide screens. Columns drop automatically when cards would get narrower than about 210 px.

Default: 3

Cards per pagenumber (1–200)

How many records are loaded and shown at a time. Smaller pages load faster on phones; larger pages reduce clicking. The server never returns more than this per request.

Default: 12

Empty-state texttext

Message shown when the query returns no records (after filters, search and permissions). Tell people what to do next: “No jobs yet — add one with the button above”.

Default: Nothing here yet.

Card button texttext

Adds a button to every card. Leave empty for none. Its click runs the On Click event with the card's record.

Example: Add to order

Data binding

An entity query (or API list). Pagination is built in: “1–12 of 80” with previous/next. Exposes page, selectedId and selectedRecord so another component (a Detail View or Map) can follow the selected card.

Properties that can use dynamic data: Title, data.

Events

On row click
Runs when a record is clicked or activated with Enter. Event → record holds the whole record and Event → id its id; actions can also read Current record. Typical: Navigate to a details page with id = Event → id, or Open Drawer with the record.
On click
Runs when the card's button (Card button text) is pressed. Event → record and Event → id identify the card. Typical: Create Record (add to order), Open Modal, Update Record.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Other components can read this component's page, selectedId, selectedRecord from the Data Picker → Component state.

Responsive behavior

Cards reflow automatically; on phones you usually get one or two per row. Compact list is the best choice for narrow screens.

Permissions

Records are filtered on the server by the current role's rules (for example customers only receive their own records) and hidden fields are removed before anything reaches the browser. Hiding this component does not protect the data; set permissions on the entity.

Accessibility

  • Cards with On Row Click are buttons for the keyboard, named after their title
  • Images use the title as alternative text

Examples

Service catalogue

Example
Source: Services where active equals true · Sort: name
Title field: name · Subtitle field: category · Image field: photo
Badge field: availability · Detail fields: price, duration
Cards per row: 3 · Card button text: Book now
On Click: Navigate → Booking, serviceId = Event → id

Common patterns

  • Search input bound to the query's Search for a searchable catalogue
  • Compact list + Map on a details page for nearby locations

Limitations

  • Fixed card layout; the order of elements cannot be changed
  • One image per card (the first if the field holds several)

Troubleshooting

Cards show “Untitled”

Why: No Title field and the entity has no display field

Fix: Set Title field or mark a display field on the entity

Images are blank

Why: The field holds a file name rather than a URL, or the role cannot see the field

Fix: Use an Image field filled by Image Upload; check hidden fields in permissions

Related

Was this helpful?