• Replaces the widget with the widget(s) generated by evaluating the specified JavaScript code snippet.

    Parameters

    • wgt: Widget<HTMLElement>

      the old widget to be replaced

    • code: string

      the JavaScript code snippet to generate new widget(s).

    Returns void