PhoenixLiveViewExt.Listilled.Helpers (phoenix_live_view_ext v1.1.0) View Source

Implements helper functions intended for use in LiveView and LiveComponent templates relying on Listilled assign lists.

Link to this section Summary

Functions

Returns container phx-update attribute string based on the type of list update.

Returns the sort instruction string (or nil if sorting not required).

Link to this section Functions

Specs

phx_update(:full | :partial) :: String.t()

Returns container phx-update attribute string based on the type of list update.

Specs

updated_sort({:sort, dst :: String.t()}) :: String.t()

Returns the sort instruction string (or nil if sorting not required).