groupEnd
Decorator that ends a collapsible group in the inspector UI.
| Type | Name | Interface Description |
|---|---|---|
| Functions | groupEnd(): (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");
}
}