space
Decorator that adds vertical spacing in the inspector UI.
| Type | Name | Interface Description |
|---|---|---|
| Functions | space(heightPixels: number): (target: any, key: string) => any | • Function: Decorator that adds vertical spacing in the inspector UI. Useful for creating visual breathing room between property groups. Parameters • Returns Property decorator function |
Example
@component()
export class ComplexComponent extends APJS.BasicScriptComponent {
@serializeProperty()
public enabled: boolean = true;
@space(20)
@serializeProperty()
public advancedMode: boolean = false;
@space(10)
@serializeProperty()
public debugMode: boolean = false;
}