-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab
rewrite
#6
Tab
rewrite
#6
Conversation
…f creating a context type.
Would be nice if it will be possible to get data from the tab. I don't use |
I think moving the |
Yes, I made the same. I made a |
I think the main goals of this PR have just been achieved 👍 |
currently the context is not required anymore but how should i use it? as example i need to access something from the ui method. fn ui(&mut self, ui: &mut egui::Ui, _ctx: &mut AppContext) that is what i used before. |
Currently you can hold your data in an The reason for this change is that in the previous version you could only have one type and only one instance of the context being passed to all tabs in one |
Tab
is no longer a trait which the user has to implement on their own custom widget. A context type is also no longer required.This makes creating trees easier without limiting customizability.
Example:
Part of this PR is closing #1 and #5