how can i expose variable to create widget

hmm have a look at what this guy says

im guessing as soon as you create the widget you set its variables from that object