phoenix_live_view
Advanced tools
Changelog
0.18.6 (2023-01-09)
Changelog
0.18.5 (2023-01-09)
Changelog
0.18.4 (2023-01-05)
allow_upload
's@page_title
JS.push
for form changesphx-no-feedback
missing from inputs added after a form submitphx-disconnected
events firing when navigating away or submitting external formsChangelog
0.18.3 (2022-10-26)
embed_templates
to Phoenix.Component
for embedding template files as function componentsChangelog
0.18.2 (2022-10-04)
:values
before :default
intersperse
component for rendering a separator between an enumerableChangelog
0.18.1 (2022-09-28)
<.live_img_preview />
causing invalid attribute errors on uploads:include
option to extend global attributes on a case-by-case basis~H
Changelog
0.18.0 (2022-09-20)
LiveView v0.18 includes a major new feature in the form of declarative assigns with new attr
and slot
APIs for specifying which attributes a function component supports, the type,
and default values. Attributes and slots are compile-time verified and emit warnings (requires Elixir v1.14.0+).
v0.18 includes a number of new function components which replace their EEx expression
counterparts <%= ... %>
. For example, live_redirect
, live_patch
, and Phoenix.HTML's
link
have been replaced by a unified Phoenix.Component.link/1
function component:
<.link href="https://myapp.com">my app</.link>
<.link navigate={@path}>remount</.link>
<.link patch={@path}>patch</.link>
Those new components live in the Phoenix.Component
module. Phoenix.LiveView.Helpers
itself has been soft deprecated and all relevant functionality has been migrated.
You must import Phoenix.Component
where you previously imported Phoenix.LiveView.Helpers
when upgrading. You may also need to import Phoenix.Component
where you also imported Phoenix.LiveView
and some of its functions have been moved to Phoenix.Component
.
Additionally, the special let
attribute on function components have been deprecated by
a :let
usage.
live_redirect
- deprecate in favor of new <.link navigate={..}>
component of Phoenix.Component
live_patch
- deprecate in favor of new <.link patch={..}>
component of Phoenix.Component
push_redirect
- deprecate in favor of new push_navigate
function on Phoenix.LiveView
attr
/slot
:let
and :for
, and :if
with HTML tag, function component, and slot support. We still support let
but the formatter will convert it to :let
and soon it will be deprecated.dynamic_tag
function componentlink
function componentfocus_wrap
function component to wrap focus around content like modals and dialogs for accessibilityfocus
, focus_first
, push_focus
, and pop_focus
for accessibilityPhoenix.LiveView.Socket
with regular channels via use Phoenix.LiveView.Socket
_live_referer
connect param for handling push_navigate
referral URLphx-connected
and phx-disconnected
bindings for reacting to lifecycle changesphx-blur
Changelog
0.17.12 (2022-09-20)
Changelog
0.17.11 (2022-07-11)
replaceTransport
to LiveSocketphx-blur
eventsChangelog
0.17.10 (2022-05-25)