Updated UI to have contextual help with tables so the UI doesn't feel so crowded

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 8120debe81
commit 05b8f85dfb
8 changed files with 97 additions and 30 deletions
+5
View File
@@ -296,6 +296,7 @@ pub struct TabRoute {
pub title: String,
pub route: Route,
pub help: String,
pub contextual_help: Option<String>,
}
pub struct TabState {
@@ -321,6 +322,10 @@ impl TabState {
self.tabs[self.index].help.clone()
}
pub fn get_active_tab_contextual_help(&self) -> Option<String> {
self.tabs[self.index].contextual_help.clone()
}
pub fn next(&mut self) {
self.index = (self.index + 1) % self.tabs.len();
}