appendPlaceholder

fun appendPlaceholder(value: JsAny, number: Int = definedExternally): SnippetString(source)

Builder-function that appends a placeholder (${1:value}) to the {@linkcode SnippetString.value value} of this snippet string.

Parameters

value

The value of this placeholder - either a string or a function with which a nested snippet can be created.

number

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