Skip to content

AbstractTextComponent.setPlaceholder method

AbstractTextComponent › setPlaceholder

Official

Sets the placeholder of the input element.

Signature:

setPlaceholder(placeholder: string): this

Parameters:

ParameterTypeDescription
placeholderstring

Returns: this

Since: 0.9.7