Vote up!
0 Votes
1 Replies

Assign Segment's internal control's Event

Question asked by Ning Ye on Feb 17, 2017 15:32 EST

I have a simple segment with some switch widget in it.  See image attached below.  Is there a way to assign an event during init or preshow event to assign OnSlide event call back?  I need to access the row context so that it knows how to handle the event. Thanks.

Kony Answered Certificate
Vote up!
0 votes
Vote down!

Found a way to do it during the data load

            "switchChannel": {
              "selectedIndex": IsChannelSubscriptionEnabled(channel)? 0 : 1,
              "info": FairfaxCounty.App.Channels[i],
              "onSlide": OnChannelSwitchSlide

I am able to put "info" and "onSlide" as part of the data to pass to the controls.

Answered by: Feb 17, 2017 15:58 EST