Add WebSegment to WebSegmentButton

Hello.

I’m sure I’m missing the obvious, but how can I add a WebSegment created in a variable to a WebSegmentButton in the UI?

Thanks in advance for help.

Cheers,
David