mintmousse.newTab
Synopsis
tab = mintmousse.newTab( title, id, index )
Parameters
title string ("UNKNOWN")
- The name of the tab you want to create
id string (nil)
- The ID to use for the new tab. If one isn't given, one is generated.
index number (-1)
- The index you want to insert the new tab into the navbar. By default, it is placed at the end of the navbar.
Returns
tab Component
- The newly created tab.
Examples
local tab = mintmousse.newTab("Dashboard", "dbTab", 1)
local console = mintmousse.newTab("Console", nil, -1)
local unknown = mintmousse.newTab(nil, nil, -2)
See Also