Skip to main content

FileBrowser

Function FileBrowser 

Source
pub fn FileBrowser(_: FileBrowserProps) -> Element
Expand description

§Props

For details, see the props struct definition.

  • tree : FileNode
  • selected_path : Option<String>
  • on_select : EventHandler<String>
  • on_toggle_dir : EventHandler<String>
  • on_new_file : Option<EventHandler<()>>

    New file, where the host keeps the reader’s files. A host that keeps none (a frame on another page) gives none, and the header offers no New file.

  • show_private_mode : bool
  • new_file_waits : Option<String>

    Why New file cannot make a file yet, such as the reader’s files still loading. While there is a reason, the button stays in place, disabled, and its tooltip gives the reason.