Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FTabManager
Description
Register a new tab spawner with the tab manager. The spawner will be called when anyone calls InvokeTab().
| Name | RegisterTabSpawner |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Docking/TabManager.h |
| Include Path | #include "Framework/Docking/TabManager.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Docking/TabManager.cpp |
FTabSpawnerEntry & RegisterTabSpawner
(
const FName TabId,
const FOnSpawnTab & OnSpawnTab,
const FCanSpawnTab & CanSpawnTab
)
The registration entry for the spawner.
Parameters
| Name | Remarks |
|---|---|
| TabId | The TabId to register the spawner for. |
| OnSpawnTab | The callback that will be used to spawn the tab. |
| CanSpawnTab | The callback that will be used to ask if spawning the tab is allowed |