Link Search Menu Expand Document

Select interface

A selector between multiple variants

Signature:

export interface Select 

Remarks

The value of the arg input variable determines which of the cases is used as the output value of this placeholder.

For plural and selectordinal, the value of arg is expected to be numeric, and will be matched either to an exact case with a key like =3, or to a case with a key that has a matching plural category as the input number.

Properties

Property Type Description
arg string  
cases SelectCase[]  
ctx Context  
pluralOffset number  
type ‘plural’ | ‘select’ | ‘selectordinal’