private onChange()

in scripts/config/WidgetConfiguration.tsx [126:140]


    private onChange(settings: ReleaseWidgetSettings): void {
        //Notify parent of config resize, if the # of custom fields has changed
        if(this.settings){
            VSS.resize(); 
        }

        this.settings = settings;        

        //If Settings are valid, notify the widget to repaint.        
        if (areSettingsValid(this.settings)) {
            var eventName = WidgetHelpers.WidgetEvent.ConfigurationChange;
            var eventArgs = WidgetHelpers.WidgetEvent.Args(this.getCustomSettings());
            this.widgetConfigurationContext.notify(eventName, eventArgs);            
        }
    }