Streaming live at 10am (PST)

How to add switch controls to my website?


#1

I would like to add switch controls (the standard green and white iphone control for changing settings to on/off). Could you let me know if it is feasible to add this control in webflow and if yes, how? Thanks.


How to use jQuery Mobile Flip Switch (On/Off Toggle)
#2

Hi @DesignerPC, thanks for the question. We do not have flipswitch elements yet as a native widget, but if you include a link to the jQuery Mobile library found at jquerymobile.com, it is possible to create these kinds of jquery mobile features. Here is an article on using the jquery mobile flipswitch:

http://demos.jquerymobile.com/1.4.5/flipswitch/

Using this method does require custom code, so the forum is the place to get help with that.

To add jQuery mobile cdn links to your site, so that you can use the jquery mobile widgets and methods in the site, you can add the following line of code to your Footer in the Custom Code section of your site dashboard:

<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

This will enable the jQuery Mobile library for the site. Next, use the examples on the jQuery Mobile documentation, to create html code/jquery code and use an embed widget for jQuery Mobile elements you want to use on your page:

http://demos.jquerymobile.com/1.4.5/intro/

I hope this helps to give a direction to go in. Let me know if you have any questions smile Cheers, Dave


#3

@cyberdave Thanks for the helpful response.


#4

I moved a post to a new topic: Issue with jQueryMobile on site


#5

#6