Skip to main content

disablePin

Decorator that disables the pin functionality for a property in the inspector UI.

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

Function: Decorator that disables the pin functionality for a property in the inspector UI. When applied to a property, it prevents users from pinning that property to the component header. Can be used with or without parentheses.

Returns Property decorator function when used with parentheses

Example

@component()
export class MyComponent extends APJS.BasicScriptComponent {
@serializeProperty()
@disablePin()
public importantConfig: string = "critical setting";

@serializeProperty()
@disablePin
public temporaryValue: number = 0;
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies