Home > widget-integration > PredictiveBundleStateService > setFocusRestoreTarget
PredictiveBundleStateService.setFocusRestoreTarget() method
Stores the element id that should receive focus after a rerender.
Signature:
setFocusRestoreTarget(key: PredictiveBundleFocusRestoreKey, elementId: string): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
Focus restore slot. | |
|
elementId |
string |
DOM id to restore focus to. |
Returns:
void