Registering a Widget Controller

Once we have a controller ready, we need to register it in the application GeneCustomWidgetFactoryService, so it will be available when we configure the corresponding widget.

Registration of the Controller is done through the controller module.

export class SampleWidgetsModule {
    constructor(customWidgetFactory: GeneCustomWidgetFactoryService) {


        // Register a Custom Controller for GeneTableComponent
        customWidgetFactory.registerCustomWidgetController(GeneTableComponent.MANIFEST,
                'SampleCustomColorsController',
                (widget: GeneTableComponent<GeneEntity>) => new SampleCustomColorsController(widget));


    }
}