Programmatically change SegmentedBar item/index


Hey All,

I am trying to change the SegmentedBar’s item/index programmatically. I have tried so far using ElementRef approach to take reference of it.

But i am not getting any property to change the selectedIndex.

Can anybody suggest the way for it?


selectedIndex did work when I tested last time, do you have a playground example to demonstrate the issue?


Playground demo application showing a possible approach to get the selectedIndex