Add methods to change the selected tab in the Shuffleboard app (#1448)

This commit is contained in:
Sam Carlberg
2018-11-28 01:12:50 -05:00
committed by Peter Johnson
parent a60f312d19
commit 6f0c185a05
8 changed files with 97 additions and 0 deletions

View File

@@ -72,3 +72,11 @@ void ShuffleboardInstance::DisableActuatorWidgets() {
}
}
}
void ShuffleboardInstance::SelectTab(int index) {
m_impl->rootMetaTable->GetEntry("Selected").ForceSetDouble(index);
}
void ShuffleboardInstance::SelectTab(wpi::StringRef title) {
m_impl->rootMetaTable->GetEntry("Selected").ForceSetString(title);
}