cancel
Showing results for 
Search instead for 
Did you mean: 

How to react on a click event of SegmentedButton

kulu
Explorer
0 Kudos

Hello,

I am using the SegmentedButton of UI5. How can i react on a click event?

There is only the SelectionChanged event but not a click event in the API Reference. I want to react if the user clicks on a segment which is already selected.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor

A SegmentedButton has the aggregation "items" which contains the SegmentedButtonItems. A SegmentedButtonItem has a press event on which you can register. That should fulfill your requirement.

kulu
Explorer
0 Kudos

Thanks thats exactly what I was looking for.

Answers (1)

Answers (1)

hugo2210
Discoverer
0 Kudos

A segmented button does have a event : check API reference + samples :