Skip to main content

groupEnd

Decorator that ends a collapsible group in the inspector UI.

TypeNameInterface Description
FunctionsgroupEnd(): (target: any, key: string) => any

Function: Decorator that ends a collapsible group in the inspector UI. Must be used after a corresponding

Returns Property decorator function when used with parentheses

Example

@component()
export class VehicleController extends APJS.BasicScriptComponent {
@serializeProperty()
public vehicleType: string = "car";

@groupBegin("Engine Settings")
@serializeProperty()
public maxHorsePower: number = 150;

@serializeProperty()
public acceleration: number = 3;
@groupEnd()

@groupBegin("Wheel Configuration")
@serializeProperty()
public wheelCount: number = 4;

@serializeProperty()
public wheelType: string = "alloy";

@groupEnd()
onStart() {
console.log("onStart");
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies