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.
Properties
Section titled “Properties”field:
string
Defined in: packages/schema/src/model.ts:483
Its filterable relation that points at the card’s record.
label?
Section titled “label?”
optionallabel?:string
Defined in: packages/schema/src/model.ts:485
The button’s accessible name, pressed while the record is saved; “Favorite” when omitted.
resource
Section titled “resource”resource:
string
Defined in: packages/schema/src/model.ts:481
The resource holding the saved records, such as favorites.