Skip to content

Files

Latest commit

 

History

History

examples

README.md

Examples

Custom Filesystem

Example showing how to use the file dialog with a custom aka. virtual file system.

cargo run --example custom_filesystem

Custom Right Panel

Example showing how to render custom UI inside the file dialog using the right panel.

cargo run --example custom_right_panel

Multi Selection

Example showing how to select multiple files and folders at once.

cargo run --example multi_selection

Screenshot

Multilingual

Example that shows how the dialog can be displayed and used in different languages.

cargo run --example multilingual

Screenshot

Multiple Actions

This example shows how you can query multiple files from the user in one view.

cargo run --example multiple_actions

Screenshot

Persistence

This example uses eframe to show how the persistent data of the file dialog can be saved.
The example uses the serde feature to serialize the required data.

cargo run --example persistence

Pick Directory

Example showing how to select a directory using the file dialog.

cargo run --example pick_directory

Screenshot

Pick File

Example showing how to select a file using the file dialog.

cargo run --example pick_file

Screenshot

Pick File with Information View

Example showing how to pick a file and display file information using the InformationView.

Requires the feature information_view as well as these dependencies:

[dependencies]
egui-file-dialog = { version = "*", features = ["information_view"] }
egui_extras = { version = "0.30", features = ["all_loaders"] }
# required by the egui loaders
image = { version = "0.25.5", features = ["bmp", "jpeg", "gif", "png", "tiff", "rayon"] }
cargo run --example pick_file_with_information_view

Screenshot

Sandbox

Sandbox app used during development of the file dialog.

cargo run --example sandbox

Save File

Example showing how to save a file using the file dialog.

cargo run --example save_file

Screenshot