Skip to main content
Docs
›
list.addRow

list.addRow

List

Adds a row for a picked entry to a list.

Signature

list.addRow(ref: ElementRef, key: string, item: ContentRef, offer: ContentOffer, cells: Record<string, AbiValue>): void

Parameters

NameTypeRequiredDescription
refElementRefRequiredThe element it works on, usually self.
keystringRequiredThe name of the list.
itemContentRefRequiredThe entry the player picked.
offerContentOfferRequiredThe choices the pick was made from, written inline.
cellsRecord<string, AbiValue>RequiredThe row's cell values, written inline. Other cells take their defaults.

Returns

void Nothing.