textArea
Decorator that creates a multi-line text area control for string properties in the inspector.
| Type | Name | Interface Description |
|---|---|---|
| Functions | textArea(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 • 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 = "";
}