How to control from JS the Segmented Control?

16 views
Skip to first unread message

Javier Zarza

unread,
Apr 5, 2013, 3:14:44 PM4/5/13
to chocolat...@googlegroups.com
Hi there.

Here's a newbie with ChocolateChip-UI. Seems lightweight enough to perform better than JQM in a slow response application I'm working with.

I've found a little issue with the UI.SegmentedControl.

It seems you can't change the selected item from JS code once the component is running.

I'm using it as a bottom toolbar, and I have two sections and a third for setup. I want to send the user to the setup if it's the first time running the app. And as soon as the user has done the setup, return to the main tab. I'm able to do the first thing but can't return when setup ready.

Is this possible to do?

Thanks in advance.

Javier.

Javier Zarza

unread,
Apr 5, 2013, 3:22:22 PM4/5/13
to chocolat...@googlegroups.com
Quick and dirty fix for me:

$('#first_button').trigger('click');

Just simulating the action :)
Reply all
Reply to author
Forward
0 new messages