Skip to content

Instantly share code, notes, and snippets.

@JHWelch
Created April 22, 2020 18:19
Show Gist options
  • Save JHWelch/d381659502055391d8eae50c209e84b6 to your computer and use it in GitHub Desktop.
Save JHWelch/d381659502055391d8eae50c209e84b6 to your computer and use it in GitHub Desktop.
//$parameters.RootId should point to a "Root" container that wraps the entire WebBlock
var wbElement = document.getElementById($parameters.RootId).parentElement;
//Replace "OnParametersChanged" with whatever action you want to have run when
wbElement.reload = $actions.OnParametersChanged; // Note the lack of ()s, point to function, not result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment