ChoiceFactoryOptions interface

Additional options used to tweak the formatting of choice lists.

Properties

includeNumbers

(Optional) if true, inline and list style choices will be prefixed with the index of the choice as in "1. choice". If false, the list style will use a bulleted list instead. The default value is true.

inlineOr

(Optional) separator inserted between the choices when their are only 2 choices. The default value is " or ".

inlineOrMore

(Optional) separator inserted between the last 2 choices when their are more than 2 choices. The default value is ", or ".

inlineSeparator

(Optional) character used to separate individual choices when there are more than 2 choices. The default value is ", ".

Property Details

includeNumbers

(Optional) if true, inline and list style choices will be prefixed with the index of the choice as in "1. choice". If false, the list style will use a bulleted list instead. The default value is true.

includeNumbers?: boolean

Property Value

boolean

inlineOr

(Optional) separator inserted between the choices when their are only 2 choices. The default value is " or ".

inlineOr?: string

Property Value

string

inlineOrMore

(Optional) separator inserted between the last 2 choices when their are more than 2 choices. The default value is ", or ".

inlineOrMore?: string

Property Value

string

inlineSeparator

(Optional) character used to separate individual choices when there are more than 2 choices. The default value is ", ".

inlineSeparator?: string

Property Value

string