Content is subject to change
RIM has been committed to providing the best Web support possible for its BlackBerry platform. Part of that story is to support popular tools and frameworks that Web developers are already familiar with. Our strategy has included experimental efforts such as bbUI.js where we have honed the details of bringing the BlackBerry 10 design language to the Web, a partnership with Sencha to make sure the Sencha Touch gets first-class BlackBerry 10 support, and direct contributions and support to jQuery Mobile which today is at the forefront of open source Mobile Web development. This project is the official BlackBerry 10 Theme for jQuery Mobile, which will help developers build Web apps that sport the full BlackBerry 10 look and feel using the framework.
<!DOCTYPE html> <html> <head> <title>My Page</title> <link rel="stylesheet" href="BlackBerry-JQM-all.min.css" /> <script src="BlackBerry-JQM-all.min.js"></script> </head> <body> <div data-role="page"> <div data-role="header"> <h1>My Title</h1> </div><!-- /header --> <div data-role="content"> <p>Hello world</p> </div><!-- /content --> </div><!-- /page --> </body> </html>
All of the files you need to get started are in
You will notice that this example does not include jQuery or jQuery mobile, this is because all of the files need are combined into
BlackBerry-JQM-all.min.js, this is done to reduce download overhead on the device and improve overall performance. If you prefer to include each file seperatly please check out the getting started documentation.
Check out the docs for more information.
Information on how to modify and build this theme can be found here.
- Jason Scott
- Jonathan Séguin