phoenix_live_view
Advanced tools
Changelog
0.2.1 (2019-09-17)
phx-update
append/prepend containers not building proper DOM contentphx-update
append/prepend containers not updating existing child containers with matching IDsChangelog
0.2.0 (2019-09-12)
:container
option to use Phoenix.LiveView
live_isolated
test helper for testing LiveViews which are not routableconfigure_temporary_assigns/2
with 3-tuple mount return, supporting a :temporary_assigns
keyredirect
/live_redirect
on mount nor in child live viewsphx-update
containers now require a unique IDLiveSocket
JavaScript constructor now requires explicit dependency injection of Phoenix Socket constructor. For example:import {Socket} from "phoenix"
import LiveSocket from "phoenix_live_view"
let liveSocket = new LiveSocket("/live", Socket, {...})
phx-update=append/prepend
failing to join new nested live views or wire up new phx-hooks"focus"
Changelog
0.1.1 (2019-08-27)
insertAdjacentHTML
for faster append/prepend and proper CSS animation handlingChangelog
0.1.0 (2019-08-25)
handle_in/3
callback now receives a map of metadata about the client eventphx-change
events, handle_in/3
now receives a "_target"
param representing the keyspace of the form input name which triggered the changephx-value-
prefix, such as phx-value-myval1
, phx-value-myval2
, etcphx-update
, which can be set to "replace"
, "append"
, "prepend"
or "ignore"
phx-ignore
was renamed to phx-update="ignore"