def METHOD_NAME(self, rendered_widgets):
    # Gather output for all widgets as normal...
    formatted = ''.join(rendered_widgets)
    # But wrap it all inside a div that the javascript will look for.
    return (
        f'<div id="trans-{self.name}" class="trans" data-name="{self.name}">'
        f'{formatted}</div>'
    )