Skip to main content

EditorToolbar

Function EditorToolbar 

Source
pub fn EditorToolbar(props: EditorToolbarProps) -> impl IntoView
Expand description

§Required Props

  • actions: Vec<ToolbarActionView>
    • Toolbar actions.
  • export_enabled: bool
    • true to enable the Export button.
  • share_enabled: bool
    • true to enable the Share button.

§Optional Props

  • on_action: [Callback<String>]
    • Fired with the chip’s id when a (non-disabled) toolbar action is clicked. The app maps the id to an edit op; the component stays presentational (it only emits the id). Omit to leave chips inert. Plain optional (not into) so EditorShell can forward its own already-Option value straight through.