PhoenixDnd.Editor (phoenix_dnd v0.1.0)

Copy Markdown View Source

A controlled, server-authoritative node editor.

The component renders a complete PhoenixDnd.Scene snapshot. Browser-side interaction state is transient; accepted changes must arrive in a later scene revision from the owning LiveView.

Summary

Functions

The targeted hook event used for client-to-server intents.

Functions

intent_event()

@spec intent_event() :: String.t()

The targeted hook event used for client-to-server intents.

render(assigns)

Attributes

  • id (:string) (required)
  • scene (PhoenixDnd.Scene) (required)
  • notify (:any) - Defaults to nil.
  • class (:any) - Defaults to nil.
  • min_zoom (:any) - Defaults to 0.1.
  • max_zoom (:any) - Defaults to 4.0.
  • aria_label (:string) - Defaults to "Node editor".

Slots

  • node