Skip to content

titlebar moddification for legacy BB devices #456

Closed
wants to merge 2 commits into from

2 participants

@kquinsland

added setCaption() and setCaption() methods to titlebars on BBOS5,6,7 Devices. Usage is now

var tb = document.getElementById('myApp_titleBar');

// when no argument is passed in, titleBar text is taken from the 'data-bb-caption' attribute; useful when other code has modified the attribute indirectly
tb.setCaption();


// set the titleBar text and the 'data-bb-caption' to the value of myNewText; useful when other code needs to modify the titleBar directly
var myNewText = "Updated titleBar text";
tb.setCaption(myNewText);

kquinsland added some commits Nov 4, 2012
kquinsland Update src/plugins/titleBar.js
added setCaption() and setCaption() methods to titlebars on BBOS5,6,7 Devices. usage is now setCaption(value);  where value is a string or null.  when null, titlebar text is taken from the data-bb-caption attribute
1cf8399
kquinsland Update pkg/bbui-0.9.5.js
added setCaption() and setCaption() methods to titlebars on BBOS5,6,7 Devices. usage is now setCaption(value);  where value is a string or null.  when null, titlebar text is taken from the data-bb-caption attribute
2e1da55
@tneil
Open Source Projects member
tneil commented Nov 12, 2012

Hi @kquinsland it appears that your branch isn't synced with the latest next branch. The pull request says that it cannot be automatically merged

@kquinsland

Closing due to merge conflict and un-attached HEAD with my local repo. New pull request created (sorry!) it is pull request #490 . That pull request is from a repo that has been synced up with the upstream repo

@kquinsland kquinsland closed this Dec 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.