Skip to content

edwloef/iced_file_tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iced File Tree

Crates.io Documentation Iced License

A lightweight file tree widget for the iced toolkit.

Usage

Include iced_file_tree as a dependency in your Cargo.toml:

[dependencies]
iced = "0.13.1"
iced_file_tree = "0.1.0"

Example

use iced::widget::scrollable;
use iced_file_tree::file_tree;

enum Message {
    FileTreeMessage(PathBuf),
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    let path: PathBuf = /* */

    scrollable(
        file_tree(path)
            .unwrap()
            .on_double_click(Message::FileTreeMessage),
    )
    .into()
}

The FileTree widget is recommended to be put in an iced Scrollable.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages