Home > widget-integration > PredictiveBundleController > bindRoot
PredictiveBundleController.bindRoot() method
Binds delegated click and keyboard handlers to a bundle root.
Override getClickActions() or getKeydownActions() to customize the delegated behavior without rewriting the binding lifecycle.
Signature:
bindRoot(root: HTMLElement, blockType?: string): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
root |
HTMLElement |
DOM root receiving delegated events. |
|
blockType |
string |
(Optional) Source block type used to resolve modal behavior. |
Returns:
void