Called when the user selects a new segment.
The selection mode of the control:
An array of segments to place in this control.
Style of the segments:
The index of the currently selected segment, will update automatically with user interaction. When the mode is multiple it will be the last selected item.
multiple