05-01-2012 02:56 PM
For those that haven't seen it yet, my mind was blown:
https://github.com/blackberry/bbUI.js
Newly added support for PlayBook, BB10, and even 5.0 devices. If you're looking for a UI framework that gives you a native look-and-feel across devices, this one is absolutely worth checking out.
This screenshot just says it all (also, BatBerry pictures):
Being a web developer myself, huge thanks to Tim Neil and the community for their continued dedication to this.
Erik Oros
BlackBerry Development Advisor
05-01-2012 03:45 PM
WOW! This looks really stunning. Looking forward for the new UI. It looks awesome! Great work.
05-02-2012 02:40 AM
Thank you for your contribution Tim and team! This is really fantastic.
![]()
Do people really want their phone making decisions for them? Whatever happened to the human element? Stop this madness!
05-04-2012 05:34 AM
05-04-2012 01:22 PM
BlackBerry 5 support is "ROUGH" to say the least.. but BB6+ support is pretty good.
I've posted up all the current milestones... things are pretty fluid but at least there's a plan ![]()
I'm currently working on refactoring the README.md into the wiki so that each control can have its own page of instructions and samples.
05-04-2012 01:40 PM
There's a video of the Jam Session demonstration available too:
05-05-2012 05:00 PM
When I woke up and saw the video, I just needed to get startet right away
To build an image grid was actually straight forward and looks beautiful!
I am just stuck with adding a href od onclick to the pictures to open a context menu. I tried various things to add the attribute to a <a> or directly to the <div> which contains the image. For example:
listItem = document.createElement('div');
listItem.setAttribute('data-bb-type', 'item');
listItem.setAttribute('data-bb-img', itemPicture);
listItem.setAttribute('data-bb-title', itemTitle);
listItem.setAttribute('onclick', 'alert('Hi');';
Unfortunatly I couldnt find a solution. Is it possible that bb.grid.apply(); is removing any href or onclick element?
best bert
05-05-2012 06:22 PM
I honesly haven't tried creating an grid image item dynamically... try the following
listItem.onclick = function() {
alert('Hi');
};
05-05-2012 06:27 PM
Oh.. and hopefully the press-and-hold context menu will automatically be wired to the grid list for you ![]()
05-05-2012 07:06 PM
ha! working perfectly. Many thanks. Code will be online tomorrow!
A built in function for the grid would be helpful anyway