Skip to content
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

can't placed TextArea inside tabs #20

Open
Redhawk18 opened this issue Sep 26, 2023 · 0 comments
Open

can't placed TextArea inside tabs #20

Redhawk18 opened this issue Sep 26, 2023 · 0 comments

Comments

@Redhawk18
Copy link

I'm trying to add tabs with TextArea, and its not a named

error[E0308]: mismatched types
   --> tui/src/views/tab_bar.rs:7:18
    |
7   |         .add_tab(TextArea::new())
    |          ------- ^^^^^^^^^^^^^^^ expected `NamedView<_>`, found `TextArea`
    |          |
    |          arguments to this method are incorrect
    |
    = note: expected struct `NamedView<_>`
               found struct `TextArea`
note: method defined here
   --> /home/redhawk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cursive-tabs-0.7.0/src/panel.rs:142:12
    |
142 |     pub fn add_tab<T: View>(&mut self, view: NamedView<T>) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant