Skip to content

CardFavoriteModel

CardFavoriteModel = object

Defined in: packages/schema/src/model.ts:479

The button in a card’s top right corner that saves its record for the signed-in user: a record of resource whose relation field points at the card’s record, created on a press and deleted on the next. The resource has an owner, so each user lists and saves their own. A visitor who is not signed in gets the resource’s sign-in prompt instead (.signIn(...) on its view). See Favorites.

field: string

Defined in: packages/schema/src/model.ts:483

Its filterable relation that points at the card’s record.


optional label?: string

Defined in: packages/schema/src/model.ts:485

The button’s accessible name, pressed while the record is saved; “Favorite” when omitted.


resource: string

Defined in: packages/schema/src/model.ts:481

The resource holding the saved records, such as favorites.