View Source Backpex.ReadonlyField behaviour (Backpex v0.1.1)

Behaviour to implement if fields should be able to render a readonly version.

Summary

Callbacks

Used to render the readonly version of the field.

Functions

Determine if the field should be rendered as readonly version.

Callbacks

Link to this callback

render_form_readonly(assigns)

View Source
@callback render_form_readonly(assigns :: map()) :: %Phoenix.LiveView.Rendered{
  caller: term(),
  dynamic: term(),
  fingerprint: term(),
  root: term(),
  static: term()
}

Used to render the readonly version of the field.

Functions

Link to this function

is_readonly?(arg1, assigns)

View Source

Determine if the field should be rendered as readonly version.