renameSidebar

This function can be used to rename a V1 SideBar, or the tabs in a V2 SideBar.

V1 SideBar

Just pass the new name you'd like displayed:

widget.renameSidebar('Daily News');

V2 SideBar

When used in a wiki with a tabbed SideBar, this will rename any or all of the tabs. The new tab names are passed to the function in the same order they appear in the SideBar: QuickStart, Recent Activity, and SideBar. To leave a tab unchanged, use '' as the parameter.

Usage is as follows:

widget.renameSidebar('Alpha','Beta','Gamma');

renames the tabs 'Alpha', 'Beta', and 'Gamma' (from left to right).

widget.renameSidebar('Alpha','','Gamma');

renames the tabs 'Alpha', 'Recent Activity', and 'Gamma' (from left to right).


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts