appendChoice

fun appendChoice(values: ReadonlyArray<JsString>, number: Int = definedExternally): SnippetString(source)

Builder-function that appends a choice (${1|a,b,c|}) to the {@linkcode SnippetString.value value} of this snippet string.

Parameters

values

The values for choices - the array of strings

number

The number of this tabstop, defaults to an auto-increment value starting at 1.