Mobile Toggle Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About

Table of Contents

1 Mobile Toggle Element - #mobile_toggle {}

This element produces a toggle switch formatted by jQuery Mobile.

Usage

#mobile_toggle { 
   id=room_lights,
   theme=c,
   on_text="Lights On",
   on_value="on",
   off_text="Lights Off",
   off_value="off,
   selected="off",
   postback=switch_lights
}

Attributes

on_text - (string)
The text label of the 'on' position (default "On")
off_text - (string)
The text label of the 'off' position (default "Off")
on_value - (string)
The value that is submitted with postbacks when in the 'on' position (default "on")
off_value - (string)
The value that is submitted with postbacks when in the 'off' position (default "off")
selected - (string)
The default selected value (default "off")
postback - (term)
If specified, will postback immediately on hitting the toggle

Date: 2014-11-12 19:50:55 CST

Author: Jesse Gumm (@jessegumm)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

Comments

Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>


comments powered by Disqus