API reference
API reference
Select your platform
No SDKs available
No versions available

WitConfigurationEditorTab Class

The WitConfiguration tabs are a set of tabs to be displayed in the inspector the WitConfiguration. They're made to be dynamic. To add another one, simply extend this class.

Overview

Data Fields

Type
The WitConfigurationData type relevant to this tab. Defaults to Will be null if there is no custom types to reference

Properties

abstract string
TabID[Get]
The custom ID for this tab
abstract int
The relative order of the tabs, from 0 upwards.
abstract string
The label to display for this tab.
abstract string
What to show when there is nothing to show for this tab.

Public Member Functions

abstract bool
Determines whether or not to show the tab, based upon the current appInfo.
bool
ShouldTabShow
( WitConfiguration configuration )
Determines whether or not to show the tab, based upon the current configuration.
string
GetPropertyName
( string tabID )
string
GetTabText
( bool titleLabel )
The text to display for this tab

Details

Fields

virtual Type Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.DataType
The WitConfigurationData type relevant to this tab. Defaults to Will be null if there is no custom types to reference

Properties

abstract string Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.TabID
The custom ID for this tab
abstract int Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.TabOrder
The relative order of the tabs, from 0 upwards.
abstract string Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.TabLabel
The label to display for this tab.
abstract string Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.MissingLabel
What to show when there is nothing to show for this tab.

Member Functions

abstract bool Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.ShouldTabShow
( WitAppInfo appInfo )
Determines whether or not to show the tab, based upon the current appInfo.
Parameters
appInfo
the relevant app info used by this tab, which can be used to determine the return result
Returns
true if the tab should show, false otherwise
virtual bool Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.ShouldTabShow
( WitConfiguration configuration )
Determines whether or not to show the tab, based upon the current configuration.
Parameters
configuration
the current configuration which may contain relevant data to determine the return result
Returns
true if should show, false otherwise
virtual string Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.GetPropertyName
( string tabID )
Parameters
tabID
Returns
the name of the property of the given tabID
virtual string Meta.WitAi.Data.Configuration.Tabs.WitConfigurationEditorTab.GetTabText
( bool titleLabel )
The text to display for this tab
Parameters
titleLabel
Whether to display the Tab's label
Did you find this page helpful?
Thumbs up icon
Thumbs down icon