API reference

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.

Fields

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

Properties

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

Methods

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