Widget loaded event

Use the widgetLoaded serves as a hook to apply changes to a widget after the DOMContentLoaded event has already fired.

The event is fired on the following occasions:

  • In edit view - every time a widget is added or reloaded in the page, template, or form designer
  • On the frontend – whenever a personalized widget is being rendered

The event has a details property, which on its turn has two properties:

  • element – the HTML element of the widget
  • model – the widget model

The following sample demonstrates how to use the event:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Access context data