Skip to content

can't placed TextArea inside tabs #20

@Redhawk18

Description

@Redhawk18

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>) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions