tizen beta release
[framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.0.1pre / docs / forms / slider / options.html
1 <!DOCTYPE html>
2 <html>
3         <head>
4         <meta charset="utf-8">
5         <meta name="viewport" content="width=device-width, initial-scale=1">
6         <title>jQuery Mobile Docs - Slider options</title>
7         <link rel="stylesheet"  href="../../../css/themes/default/" />
8         <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
9         <script src="../../../js/jquery.js"></script>
10         <script src="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
11         <script src="../../_assets/js/jqm-docs.js"></script>
12         <script src="../../../js/"></script>
13 </head>
14 <body>
15
16         <div data-role="page" class="type-interior">
17
18                 <div data-role="header" data-theme="f">
19                 <h1>Slider</h1>
20                 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
21         </div><!-- /header -->
22
23         <div data-role="content">
24                 <div class="content-primary">
25
26                 <form action="#" method="get">
27
28                         <h2>Slider</h2>
29                         
30                         <ul data-role="controlgroup" data-type="horizontal" class="localnav">
31                                 <li><a href="index.html" data-role="button" data-transition="fade">Basics</a></li>
32                                 <li><a href="options.html" data-role="button" data-transition="fade" class="ui-btn-active">Options</a></li>
33                                 <li><a href="methods.html" data-role="button" data-transition="fade">Methods</a></li>
34                                 <li><a href="events.html" data-role="button" data-transition="fade">Events</a></li>
35                         </ul>
36                         
37                         <p>The slider plugin has the following options:</p>
38
39                 <dl>
40                         <dt><code>disabled</code> <em>string</em></dt>
41                         <dd>
42                                 <p class="default">default: false</p>
43                                 <p>Sets the default state of the slider to disabled when "true".</p>            
44                                 <pre><code>$('.selector').slider(<strong>{ disabled: "true" }</strong>);</code></pre>
45                         </dd>
46                         
47                         <dt><code>initSelector</code> <em>CSS selector string</em></dt>
48                         <dd>
49                                 <p class="default">default: "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')"</p>
50                                 <p>This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as sliders. To change which elements are initialized, bind this option to the <a href="../../api/globalconfig.html">mobileinit event</a>:</p>
51 <pre><code>$( document ).bind( "mobileinit", function(){
52    <strong>$.mobile.slider.prototype.options.initSelector = ".myslider";</strong>
53 });
54 </code></pre>
55                         </dd>
56                                                 
57                         <dt><code>theme</code> <em>string</em></dt>
58                         <dd>
59                                 <p class="default">default: null, inherited from parent</p>
60                                 <p>Sets the color scheme (swatch) for all instances of this widget. It accepts a single letter from a-z that maps to the swatches included in your theme. By default, it will inherit the same swatch color as it's parent container if not explicitly set. This option is also exposed as a data attribute: <code>data-theme=&quot;a&quot;</code></p>                  
61                                 <pre><code>$('.selector').slider(<strong>{ theme: "a" }</strong>);</code></pre>
62                         </dd>
63                         
64                         <dt><code>trackTheme</code> <em>string</em></dt>
65                         <dd>
66                                 <p class="default">default: null, inherited from parent</p>
67                                 <p>Sets the color scheme (swatch) for the slider's track, specifically. It accepts a single letter from a-z that maps to the swatches included in your theme.</p>               
68                                 <pre><code>$('.selector').slider(<strong>{ theme: "a" }</strong>);</code></pre>
69                                 <p>This option can be overridden in the markup by assigning a data attribute to the input, e.g. <code>data-track-theme=&quot;a&quot;</code>.</p>
70                         </dd>
71                         
72                 </dl>   
73     
74         </form>
75         </div><!--/content-primary -->          
76         
77         <div class="content-secondary">
78                 
79                 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
80                         
81                                 <h3>More in this section</h3>
82                                 
83                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
84                                 
85                                         <li data-role="list-divider">Form elements</li>
86                                         <li><a href="../docs-forms.html">Form basics</a></li>
87                                         <li><a href="../forms-all.html">Form element gallery</a></li>
88                                         <li><a href="../textinputs/index.html">Text inputs</a></li>
89                                         <li><a href="../search/">Search input</a></li>
90                                         <li data-theme="a"><a href="index.html">Slider</a></li>
91                                         <li><a href="../switch/">Flip toggle switch</a></li>
92                                         <li><a href="../radiobuttons/">Radio buttons</a></li>
93                                         <li><a href="../checkboxes/">Checkboxes</a></li>
94                                         <li><a href="../selects/">Select menus</a></li>
95                                         <li><a href="../forms-themes.html">Theming forms</a></li>
96                                         <li><a href="../forms-all-native.html">Native form elements</a></li>
97                                         <li><a href="../forms-sample.html">Submitting forms</a></li>
98                                         
99         
100                                 </ul>
101                 </div>
102         </div>          
103
104 </div><!-- /content -->
105
106 <div data-role="footer" class="footer-docs" data-theme="c">
107                 <p>&copy; 2011 The jQuery Project</p>
108 </div>
109         
110 </div><!-- /page -->
111
112 </body>
113 </html>
114