Home > widget-integration > PredictiveBundleController > renderPreparedBundle

PredictiveBundleController.renderPreparedBundle() method

Applies pre-rendered bundle markup to a target element.

Signature:

protected renderPreparedBundle(targetElement: HTMLElement, prepared: {
		data: PredictiveBundleData;
		html: string;
	}, blockType: string): void;

Parameters

Parameter

Type

Description

targetElement

HTMLElement

Element receiving the prepared markup.

prepared

{ data: PredictiveBundleData; html: string; }

Pre-rendered bundle state and HTML.

blockType

string

Source block type.

Returns:

void