PhoenixDnd.Edge (phoenix_dnd v0.1.0)

Copy Markdown View Source

A directed relationship between two node ports.

Summary

Types

t()

@type t() :: %PhoenixDnd.Edge{
  class: term(),
  data: term(),
  id: String.t(),
  kind: String.t() | atom() | nil,
  source: PhoenixDnd.Endpoint.t(),
  target: PhoenixDnd.Endpoint.t()
}

Functions

new!(edge)

@spec new!(map() | keyword() | t()) :: t()

new!(id, source, target, attrs \\ [])

@spec new!(
  String.t(),
  PhoenixDnd.Endpoint.t() | map(),
  PhoenixDnd.Endpoint.t() | map(),
  map() | keyword()
) :: t()