mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
draft pin tab feature
This commit is contained in:
parent
4b78ccb779
commit
f2427c453e
8 changed files with 64 additions and 20 deletions
|
|
@ -15,14 +15,18 @@ impl Tab {
|
|||
}
|
||||
|
||||
// Actions
|
||||
pub fn append(&self, current: bool) -> u32 {
|
||||
pub fn append(&self, is_active: bool) -> u32 {
|
||||
self.widget.append(
|
||||
label::Label::new().widget().container(),
|
||||
label::Label::new(false).widget().container(),
|
||||
page::Page::new().widget().container(),
|
||||
current,
|
||||
is_active,
|
||||
)
|
||||
}
|
||||
|
||||
pub fn pin(&self) -> bool {
|
||||
false // @TODO
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn widget(&self) -> &widget::Tab {
|
||||
&self.widget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue