Permalink
Browse files

Adding Sample

  • Loading branch information...
1 parent 570f532 commit 5e557a26667afd1e3cd95e89f8a256d7b5d8e89a @glasspear glasspear committed Apr 3, 2012
Showing with 65 additions and 0 deletions.
  1. +30 −0 samples/js/menuBar.js
  2. +35 −0 samples/menuBar.htm
View
@@ -0,0 +1,30 @@
+/*
+* 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.
+*/
+function foo(){
+ alert('foo');
+}
+
+function bar(){
+ alert('bar');
+}
+
+function fooBar(){
+ alert('fooBar');
+}
+
+function barFoo(){
+ alert('barFoo');
+}
View
@@ -0,0 +1,35 @@
+<!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 data-bb-type="screen" data-bb-title="Menus" data-bb-effect="fade">
+ <div data-bb-type="title" data-bb-caption="Menus" data-bb-back-caption="Back"></div>
+ <script id="menuBar" src="js/menuBar.js"></script>
+ <div data-bb-type="menu" class="foo">
+ <div data-bb-type="menu-item" class="bar" data-bb-img="images/menu_icons/icon1.png" data-bb-caption="Rules" onclick="foo();"></div>
+ <div data-bb-type="menu-item" data-bb-selected="true" data-bb-img="images/menu_icons/icon2.png" data-bb-caption="Options" data-bb-icon-only="true" onclick="bar();"></div>
+ <div data-bb-type="menu-separator"></div>
+ <div data-bb-type="menu-item" data-bb-img="images/menu_icons/icon3.png" data-bb-caption="Stats" onclick="fooBar();"></div>
+ <div data-bb-type="menu-item" data-bb-caption="Play" onclick="barFoo();"></div>
+ </div>
+ <div data-bb-type="round-panel" id="playbook-instruc">
+ <div data-bb-type="panel-header">PlayBook</div>
+ <p>When viewed on the PlayBook the menu will appear on bezel swipe down.</p>
+ </div>
+ <div data-bb-type="round-panel" id="smartphone-instruc">
+ <div data-bb-type="panel-header">Smartphone</div>
+ <p>When viewed on a Smartphone the menu will appear when you use the Blackberry button.</p>
+ </div>
+</div>

0 comments on commit 5e557a2

Please sign in to comment.