added id's

This commit is contained in:
2024-11-08 16:41:07 +01:00
parent 2a43bf75db
commit c65bd68be5
5 changed files with 35 additions and 11 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ pub trait Element: DynClone {
/// * `_height` - The height of the terminal window or parent element.
fn update_data(&mut self, _width: usize, _height: usize);
fn get_id(&mut self) -> String;
fn get_id(&self) -> String;
fn get_element_by_id(&mut self, id: &str) -> Option<&mut Box<dyn Element>>;