Skip to content

tes3uiTabContainer⚓︎

A structure containing properties specific to tab containers.

This type inherits the following: tes3uiWidget.

Properties⚓︎

currentTab⚓︎

The ID of the currently selected tab. Setting this value will change to the tab associated with the ID.

Returns:

  • result (string)

element⚓︎

Access back to the element this widget interface is for.

Returns:


Methods⚓︎

addTab⚓︎

Creates a new tab in the container. This will add a tab button to the top of the element, as well as a new block for the contents, which will be returned.

local result = myObject:addTab({ id = ..., name = ... })

Parameters:

  • params (table)
    • id (string): The unique identifier for the tab.
    • name (string): Optional. The text used for the tab's selector button. If not provided, the ID will be used.

Returns:


getContentsBlock⚓︎

Gets the block that contains the tab contents used for this container. Should be used with care.

local result = myObject:getContentsBlock()

Returns:


getTabsBlock⚓︎

Gets the block that contains the tab buttons used for this container. Should be used with care.

local result = myObject:getTabsBlock()

Returns: