Author: Jesse Gumm (@jessegumm)

# Mobile Toggle Element

Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About

## Table of Contents

- 1 Mobile Toggle Element - #mobiletoggle {}

## 1 Mobile Toggle Element - #mobiletoggle {}

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

ontext - (string)
  The text label of the 'on' position (default "On")
offtext - (string)
  The text label of the 'off' position (default "Off")
onvalue - (string)
  The value that is submitted with postbacks when in the 'on' position (default "on")
offvalue - (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

### See Also

- jQuery mobile elements
- base element
- dropdown element

Date: 2012-10-18 03:24:58 CDT

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