genstudio-extensibility-sdk

@adobe/genstudio-extensibility-sdk


@adobe/genstudio-extensibility-sdk / Toggle

Type Alias: Toggle

Toggle: { metadata: AppMetadata; onClick: () => void; }

Toggle is a type that represents a toggle which contains a metadata and a function to be called when the toggle is clicked. In most cases the toggle will be used to open a dialog or a panel which is of an App type.

Type declaration

metadata

metadata: AppMetadata

onClick()

onClick: () => void

Returns

void