Initial commit

This commit is contained in:
VortrexFTW
2020-09-04 15:56:19 -05:00
commit c536fcd6ef
245 changed files with 14997 additions and 0 deletions

26
third-party/mexui/Core/Entry/Tab.js vendored Normal file
View File

@@ -0,0 +1,26 @@
mexui.Entry.Tab = function(tabPanel, text)
{
mexui.Component.Entry.call(this, tabPanel, 0);
this.text = text;
this.controls = [];
};
mexui.util.extend(mexui.Entry.Tab, mexui.Component.Entry);
// model
mexui.Entry.Tab.prototype._control = function(control)
{
control.shown = this.control.activeTabIndex == this.getEntryIndex();
this.controls.push(control);
};
mexui.Entry.Tab.prototype.setActive = function()
{
for(var i in this.control.entries[this.control.activeTabIndex].controls)
this.control.entries[this.control.activeTabIndex].controls[i].shown = false;
this.control.activeTabIndex = this.getEntryIndex();
for(var i in this.control.entries[this.control.activeTabIndex].controls)
this.control.entries[this.control.activeTabIndex].controls[i].shown = true;
};