feat: implement basic selectable nav list
This commit is contained in:
1 parent
2069beba8a
commit
aa912673c0
10 files changed
+285
-19
No files matched your search
+10
-1
@@ -1,5 +1,14 @@
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct TabInfo {
|
||||
pub name: String,
|
||||
pub text: String,
|
||||
pub path: String,
|
||||
}
|
||||
|
||||
impl TabInfo {
|
||||
pub fn new(text: impl Into<String>, path: impl Into<String>) -> Self {
|
||||
Self {
|
||||
text: text.into(),
|
||||
path: path.into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user