Skip to main content

Workbench

Function Workbench 

Source
pub fn Workbench(_: WorkbenchProps) -> Element
Expand description

The Studio’s working area for state, drawn for host.

§Props

For details, see the props struct definition.

  • state : WorkbenchState
  • host : Host
  • store : StoreNote

    What the reader’s store says beside the files. A frame has no store.

  • on_new_file : Option<EventHandler<()>>

    New file, where the host keeps the reader’s files. With none, the Files header offers no New file.

  • on_choose : Option<EventHandler<String>>

    A file the reader chose in the Files tree, after the workbench has opened it when the site carries it. The Studio page keeps the address bar on it and reads a reader’s own file.