blackberry/bbUI.js — pull request #441 by lyricidal (2012-11-05 12:40:57+00:00)
Title: Added setBackCaption to Action Bars #311, setOnCaption/setOffCaption to Toggle Buttons #315 and added show, hide, remove to Scroll Panels

For Action Bars:
document.getElementById('actionBarID').setBackCaption('Return');

For Toggle Buttons:
document.getElementById('toggleBtn').setOffCaption('No');
document.getElementById('toggleBtn').setOnCaption('Yes');

For Scroll Panels:
document.getElementById('myPanel').show();
document.getElementById('myPanel').hide();
document.getElementById('myPanel').remove();

I wasn't sure of the best way to show the action bar setBackCaption function in use on the sample page. There wasn't the usual action bar back button on it so I left it as is for now.