Skip to main content
Docs
›
offer.fromList

offer.fromList

Offer

Offers the items already in another list.

Signature

offer.fromList(key: string, where?: ContentWhere, opts?: { maxItems?: number }): ContentOffer

Parameters

NameTypeRequiredDescription
keystringRequiredThe name of the list.
whereContentWhereOptionalThe field conditions an entry must meet.
opts{ maxItems?: number }OptionalExtra settings, such as maxItems for the most entries to offer.

Returns

ContentOffer The offer, to pass to list.add or list.addRow.