Skip to main content

textArea

Decorator that creates a multi-line text area control for string properties in the inspector.

TypeNameInterface Description
FunctionstextArea(height?: number): (target: any, key: string) => any

Function: Decorator that creates a multi-line text area control for string properties in the inspector. Useful for longer text content that needs multiple lines.

Parameters

height: - Optional height of the text area in line height. Default is 3.

Returns Property decorator function

Example

@component()
export class DialogSystem extends APJS.BasicScriptComponent {
@serializeProperty()
@textArea(2)
public dialogText: string = "Welcome to the game!";

@serializeProperty()
@textArea(5)
public description: string = "This component handles all dialog interactions.";

@serializeProperty()
@textArea(10)
public authorNotes: string = "";
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies