connect the sun (directional light) rotation to a slider in a widget

So the sun (directional light) is in the same BP that creates the widget? Or no?