Skip to content
NickWare edited this page Dec 27, 2021 · 1 revision

The Tabs control HTML model:

<div class="Tabs" data-tabsname=T1">
    <div class="Button">Tab 1</div>
    <div class="Button">Tab 2</div>
</div>

JS:

facefull.Tabs["T1"].onTabChanged = function(tabnum) {
    console.log("Active tab:", tabnum);
}

facefull.Tabs["T1"].doSelectTab(0);
Clone this wiki locally