Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
BlackBerry UI look and feel JavaScript toolkit for WebWorks
JavaScript CSS
tree: 5aa6175b88

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
logos
pkg
samples
src
.gitignore
CHANGELOG.md
HACKING.md
Jakefile
LICENSE
README.md

README.md

logo

Current version: 0.9.2 BETA

The goal of the bbUI toolkit is to provide a BlackBerry® User Experience and Design Language for HTML5 applications using the BlackBerry WebWorks framework. It provides common UI constructs that are found on the BlackBerry operating system so that you can create an application that follows the UI guidelines and looks at home on a BlackBerry with very little effort.

All changes can be found in the Commit History for this repo or in the Change Log.

This toolkit is currently in an incubation stage and we're working on getting things up and going. Focus is on BB6/BB7/PlayBook/BB10 and then back-port for BB5.

Please read the Issues List for details on known issues, feature requests and planned improvements

Author(s)

Icons in "samples/images/icons" are Plastique Icons by Scott Lewis under the Creative Commons Attribution-Share Alike 3.0 Unported License as specified here.

Source files to include

You can find both the JS and CSS files that you need to add to your page in the "pkg" directory in this repository. You can also download the current release as a zip

Philosophy

The bbUI toolkit is designed to progressively enhance its capability based on the abilities of the Web rendering engine on BB5/BB6/BB7/PlayBook. This means that in some cases toolbars are fixed, and in others they scroll with the content. The CSS used to generate the user interface is handled by the bbUI toolkit so that you don't have to deal with the idiosyncrasies of the different layout engines.

Each of the layouts and controls use custom attributes that begin with data-bb- so that the toolkit can determine the type of control that is desired and then style it accordingly. By not adding any kind of layout logic to the screen elements, bbUI can then modify the DOM in any way that it needs in order to achieve the desired result.

All DOM manipulation occurs while the HTML fragment is not attached to the live DOM. This allows DOM manipulation to occur VERY, VERY, FAST and it does not incur any WebView layout computation until the entire fragment is inserted into the DOM. Layout computation during JavaScript DOM manipulation is one of the single most expensive operations that can slow down a Web based UI.

Each screen you create is an HTML fragment that gets loaded into the application via AJAX to keep the size of the DOM small and memory usage to a minimum.

Trackpad Navigation

bbUI is designed to take advantage of the WebWorks Focus Based Navigation. The toolkit will automatically add the proper highlighting and focus based tags to your UI so that it provides standard BlackBerry trackpad navigation.

Documentation

We've provided documentation for each of the controls in our wiki and you can check out the table of contents below to find the information you're looking for:

The Basics

BlackBerry 10 "Only" controls

These controls are only supported on BlackBerry 10 devices or a PlayBook that has specified that it would like to use BlackBerry 10 styling

ActionBar    ContextMenu    GridList

Common Controls

These common controls and layouts are supported across BB6/BB7/PlayBook/BB10

ArrowList    BBMBubbles    Button    ControlGroup    DropDown    ImageList    LabelControlContainer    PillButtons    ProgressIndicator    RadioButtons   ScreenMenu    Slider

Tested On

  • BlackBerry Dev Alpha
  • BlackBerry PlayBook v2.0.1.x
  • BlackBerry Torch 9860 v7.0.0.x
  • BlackBerry Curve 9360 v7.0.0.x
  • BlackBerry Bold 9700 v6.0.0.546

Contributing

To build and contribute to bbUI.js please see the HACKING.md file

If you would like to contribute code to the bbUI.js project please follow the How to Contribute instructions for contributor agreements.

Something went wrong with that request. Please try again.