Quick Reference
Access
{{reader}}
Favourite Pages
{{pageEntry.pageName}}
Signed in as {{currentUser}} {{avatar}}
Sign Out
Sign In as Different User
{{currentUserExtraOptions}}
OpenForum
Javascript
Application
QuickReference
QuickReference
Making a tabbed application
Include the tabs library in your page.js
OpenForum.includeScript("/OpenForum/Javascript/Application/Tabs.js");
Add a tabs list
var tabList = [ {title: "Overview"}, {title: "Tab1"}, {title: "Tab2"} ]; var pageTabs;
Add a container for you tabs in your page.content
!!!!Loading My Tabbed Application !!Please Wait.....
{{tab.title}}
Loading...
Initialise the tabs in the init function and show the application when the tabs are ready
OpenForum.init = function() { pageTabs = new Tabs( "tabViews",tabList,continueInit ); }; function continueInit() { OpenForum.hideElement("splash"); OpenForum.showElement("application"); setTimeout(function() {pageTabs.showTab("overview");} , 100); }
Create content for the tabs eg. Overview requires a content file overview.wiki.fragment
!!Overview
An error has occurred.
{{OpenForum.errorMessage}}
See technical details
×
Error details.
{{OpenForum.error}}
×
{{OpenForum.alert.title}}
{{OpenForum.alert.message}}
×