MCPcopy Create free account
hub / github.com/elastic/devfiler / tab_selector

Method tab_selector

src/ui/app.rs:244–262  ·  view source on GitHub ↗
(&mut self, ui: &mut Ui)

Source from the content-addressed store, hash-verified

242 }
243
244 fn tab_selector(&mut self, ui: &mut Ui) {
245 ui.horizontal(|ui| {
246 for tab in &self.tabs {
247 if !tab.show_tab_selector(&self.cfg) {
248 continue;
249 }
250
251 let id = tab.id();
252 ui.selectable_value(&mut self.active_tab, id, id.to_string());
253 }
254
255 if ui
256 .selectable_label(self.show_add_data_window, "Add data")
257 .clicked()
258 {
259 self.show_add_data_window = !self.show_add_data_window;
260 }
261 });
262 }
263
264 fn time_selector(&mut self, ui: &mut Ui) {
265 ui.horizontal(|ui| {

Callers 1

draw_main_windowMethod · 0.80

Calls 2

show_tab_selectorMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected