trame.widgets.helper.create_class(class_name, component_name, properties=[], events=[], module=None)

Helper for creating Widget class


class_name (string): name of the Python generated class component_name (string): name of the vue component properties (list, optional): List of properties mapping. Defaults to []. events (list, optional): List of events mapping. Defaults to []. module (dict, optional): Module to enable when using the class. Defaults to None.