Questions tagged [phoenix-live-view]

Phoenix LiveView is a feature of Elixir's Phoenix framework that enables rendering web pages on the server via HEEx templates, and updating them via websockets / Phoenix Channels. Use this tag together with [elixir] and/or [phoenix-framework] for questions specific to this feature.

Official github repository: https://github.com/phoenixframework/phoenix_live_view

138 questions
0
votes
1 answer

In Phoenix Liveview, how to change button labels to indicate job status

Does LiveView update DOM when a value is added to assigns like assign(socket, strLabel: "Push me")? or when handle_event returns { .. , socket}? I have a button which reads from a DB when clicked. I want the button label to be changed to…
Jason O.
  • 3,168
  • 6
  • 33
  • 72
0
votes
1 answer

How to start an animation when PhoenixLiveView updates the view

I have a simple liveview that counts the number of rows in a table and displays that. It gets updated and that works quite well. But I want to show some kind of animation to the user. For example the number "flashes" or blurs quickly whenever it's…
Joe Eifert
  • 1,306
  • 14
  • 29
-1
votes
1 answer

"push_patch" won't update URL

I have a component for pagination. It works but there's one issue: it won't replace or update the URL in the browser dynamically. Namely, when I change a page -- 2nd, 3rd, 4th page of the data in a table -- I want the URL to get updated as well:…
Koklushkin
  • 155
  • 7
1 2 3
9
10