iced_file_tree

Crates.ioiced_file_tree
lib.rsiced_file_tree
version
sourcesrc
created_at2024-11-22 15:38:00.179687
updated_at2024-11-22 15:43:57.687025
descriptionA lightweight file tree widget for the iced toolkit.
homepage
repositoryhttps://github.com/edwloef/iced_file_tree
max_upload_size
id1457476
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
edwloef (edwloef)

documentation

README

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.

Commit count: 18

cargo fmt