Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 312424be60
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (53 sloc) 2.232 kB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!--
* Copyright 2010-2011 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<div style="background-color: #252525;color:white;" data-bb-type="screen" data-bb-effect="slide-up">
<div data-bb-type="title" data-bb-caption="Toggle Buttons" data-bb-back-caption="Back" ></div>
<style>
.cell {
line-height: 100px;
height: 100px;
vertical-align: middle;
}
.first {
width: 350px;
}
</style>
<div style="margin:15px;">
<table>
<tr>
<td class="cell first" style="padding-top:7px;">Choice One: <span id="one">true</span></td>
<td class="cell">
<div data-bb-type="toggle" data-bb-checked="true" data-bb-on="Yes" data-bb-off="No" onchange="document.getElementById('one').innerHTML = this.checked"/></div>
</td>
</tr>
<tr>
<td class="cell" style="padding-top:7px;">Choice Two: <span id="two">true</span></td>
<td class="cell">
<div data-bb-type="toggle" data-bb-checked="false" data-bb-on="On" data-bb-off="Off" onchange="document.getElementById('two').innerHTML = this.checked"/></div>
</td>
</tr>
<tr>
<td class="cell" style="padding-top:7px;">Choice Three: <span id="three">true</span></td>
<td class="cell">
<div id="foo" data-bb-type="toggle" data-bb-checked="true" data-bb-on="Oui" data-bb-off="Non" onchange="document.getElementById('three').innerHTML = this.checked"></div>
</td>
</tr>
</table>
<div data-bb-type="button" data-bb-style="stretch" onclick="document.getElementById('foo').setChecked(!document.getElementById('foo').checked);" >Call setChecked()</div>
</div>
<div data-bb-type="action-bar" data-bb-back-caption="Back"></div>
</div>
Jump to Line
Something went wrong with that request. Please try again.