Home > widget-integration > PredictiveBundleStateService > getFocusRestoreTarget

PredictiveBundleStateService.getFocusRestoreTarget() method

Reads a focus restore target.

Signature:

getFocusRestoreTarget(key: PredictiveBundleFocusRestoreKey): string | undefined;

Parameters

Parameter

Type

Description

key

PredictiveBundleFocusRestoreKey

Focus restore slot.

Returns:

string | undefined

Stored DOM id, or undefined when absent.