View Source MavuSnippetsUi.Live.Ce.CeEditBase behaviour (MavuSnippetsUi v0.1.20)

Boilerplate for Ce-Edit-Component

Link to this section Summary

Link to this section Callbacks

Link to this callback

changeset_for_this_step(arg1, map)

View Source (optional)
Link to this callback

get_attachment_basepath(socket, field, entry)

View Source (optional)
@callback get_attachment_basepath(
  socket :: Phoenix.Socket.t(),
  field :: atom(),
  entry :: Phoenix.LiveView.UploadEntry.t()
) :: binary()
Link to this callback

get_attachment_filename(socket, field, entry)

View Source (optional)
@callback get_attachment_filename(
  socket :: Phoenix.Socket.t(),
  field :: atom(),
  entry :: Phoenix.LiveView.UploadEntry.t()
) :: binary()
Link to this callback

get_attachment_storage_path(socket, field, entry)

View Source (optional)
@callback get_attachment_storage_path(
  socket :: Phoenix.Socket.t(),
  field :: atom(),
  entry :: Phoenix.LiveView.UploadEntry.t()
) :: binary()
Link to this callback

get_attachment_url(socket, field, entry)

View Source (optional)
@callback get_attachment_url(
  socket :: Phoenix.Socket.t(),
  field :: atom(),
  entry :: Phoenix.LiveView.UploadEntry.t()
) :: binary()
Link to this callback

save_step_data(field, socket)

View Source (optional)
@callback save_step_data(
  field :: map(),
  socket :: Phoenix.Socket.t()
) :: {atom(), Phoenix.Socket.t()} | {atom(), Phoenix.LiveView.Socket.t()}