Skip to main content
Docs
›
list.countCell

list.countCell

List

Counts the rows of a list that hold a value.

Signature

list.countCell(ref: ElementRef, key: string, cell: string, value: AbiValue): number

Parameters

NameTypeRequiredDescription
refElementRefRequiredThe element it works on, usually self.
keystringRequiredThe name of the list.
cellstringRequiredThe name of the cell.
valueAbiValueRequiredThe value to count.

Returns

number How many there are.