<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>liveview on Poeticoding</title><link>https://www.poeticoding.com/tag/liveview/</link><description>Recent content in liveview on Poeticoding</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 28 Nov 2024 18:20:25 +0000</lastBuildDate><atom:link href="https://www.poeticoding.com/tag/liveview/index.xml" rel="self" type="application/rss+xml"/><item><title>Effortless Video Sharing with Phoenix LiveView and FLAME</title><link>https://www.poeticoding.com/effortless-video-sharing-with-phoenix-liveview-and-flame/</link><pubDate>Thu, 28 Nov 2024 18:09:06 +0000</pubDate><guid>https://www.poeticoding.com/effortless-video-sharing-with-phoenix-liveview-and-flame/</guid><description>&lt;p>As someone who loves experimenting with new technologies, I recently got the Vision Pro (I’m a big fan of VR and the idea of working in mixed reality). What excites me the most is sharing the cool stuff I discover, with my friends and colleagues, like how amazing it is to have a floating 3D model in mixed reality, built with just a few lines of Swift code.&lt;/p></description></item><item><title>Layouts and LiveEEx templates</title><link>https://www.poeticoding.com/layouts-and-liveeex-templates/</link><pubDate>Tue, 25 May 2021 11:14:16 +0000</pubDate><guid>https://www.poeticoding.com/layouts-and-liveeex-templates/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/2Sc0eOauH2k" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>&lt;a href="https://www.poeticoding.com/introductory-phoenix-liveview-course/">Course Index page&lt;/a>&lt;/p>
&lt;h1 id="code">Code&lt;/h1>
&lt;ul>
&lt;li>&lt;a href="https://github.com/poeticoding/poeticoins/tree/lv-first-view" target="_blank" rel="noopener">&lt;code>lv-first-view&lt;/code> branch&lt;/a>&lt;/li>
&lt;/ul>
&lt;h1 id="links">Links&lt;/h1>
&lt;ul>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix/views.html#layouts" target="_blank" rel="noopener">Phoenix Layouts&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/live-layouts.html" target="_blank" rel="noopener">Live Layouts&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/live-layouts.html" target="_blank" rel="noopener">Assigns and LiveEEx templates&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/assigns-eex.html#liveeex-pitfalls" target="_blank" rel="noopener">Updating the HTML document title&lt;/a>&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>&lt;a href="https://www.poeticoding.com/how-phoenix-liveview-works/">We&amp;rsquo;ve previously seen in detail how Phoenix LiveView works&lt;/a>. In this lesson we are going to see:&lt;/p></description></item><item><title>First contact with Phoenix LiveView</title><link>https://www.poeticoding.com/first-contact-with-phoenix-liveview/</link><pubDate>Tue, 13 Apr 2021 18:46:05 +0000</pubDate><guid>https://www.poeticoding.com/first-contact-with-phoenix-liveview/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/9ZTm0R5YU64" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>&lt;a href="https://www.poeticoding.com/introductory-phoenix-liveview-course/">&lt;strong>Course Index page&lt;/strong>&lt;/a>&lt;/p>
&lt;h2 id="code">Code&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://github.com/poeticoding/poeticoins/tree/lv-first-view" target="_blank" rel="noopener">&lt;code>lv-first-view&lt;/code> branch&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://github.com/poeticoding/poeticoins/pull/15" target="_blank" rel="noopener">Lesson&amp;rsquo;s PR&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://github.com/poeticoding/poeticoins/blob/lv-first-view/lib/poeticoins_web/live/crypto_dashboard_live.ex" target="_blank" rel="noopener">&lt;code>PoeticoinsWeb.CryptoDashboardLive&lt;/code>&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="links">Links&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#c:mount/3" target="_blank" rel="noopener">mount/3&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#c:render/1" target="_blank" rel="noopener">ren&lt;/a>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#c:render/1" target="_blank" rel="noopener">d&lt;/a>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#c:render/1" target="_blank" rel="noopener">er/1&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#assign/3" target="_blank" rel="noopener">assign/3&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#update/3" target="_blank" rel="noopener">update/3&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.Helpers.html#sigil_L/2" target="_blank" rel="noopener">~L&lt;/a>&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="our-first-live-view">Our first Live View&lt;/h2>
&lt;p>In this lesson we&amp;rsquo;ll introduce LiveView and get a sense of how powerful it can be. In the next lesson we&amp;rsquo;ll see better how LiveView works under the hood.&lt;/p></description></item><item><title>Understanding Phoenix LiveView: build a Gallery app</title><link>https://www.poeticoding.com/understanding-liveview-build-a-gallery-app/</link><pubDate>Wed, 20 Nov 2019 17:50:13 +0000</pubDate><guid>https://www.poeticoding.com/understanding-liveview-build-a-gallery-app/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/P5TvNf65LLw" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>&lt;strong>Understanding Phoenix LiveView&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://www.poeticoding.com/how-to-setup-phoenix-liveview/">Setup&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.poeticoding.com/the-primitives-of-phoenix-liveview/">The Primitives&lt;/a>&lt;/li>
&lt;li>Building a Gallery app (this article)&lt;/li>
&lt;/ul>
&lt;p>In the previous articles we&amp;rsquo;ve seen &lt;a href="https://www.poeticoding.com/how-to-setup-phoenix-liveview/">how to setup Phoenix LiveView&lt;/a> and &lt;a href="https://www.poeticoding.com/the-primitives-of-phoenix-liveview/">built a counter&lt;/a> (which is like the &amp;ldquo;Hello World&amp;rdquo; code example in the LiveView world). We’ve also taken a look at the &lt;a href="https://www.poeticoding.com/the-primitives-of-phoenix-liveview/">live-cycle&lt;/a>, inspecting websocket messages, having a glimpse of how the things work under the hood.&lt;/p></description></item><item><title>The Primitives of Phoenix LiveView</title><link>https://www.poeticoding.com/the-primitives-of-phoenix-liveview/</link><pubDate>Tue, 12 Nov 2019 16:30:21 +0000</pubDate><guid>https://www.poeticoding.com/the-primitives-of-phoenix-liveview/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/gPSXxtgmyB8" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>&lt;strong>Understanding Phoenix LiveView&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://www.poeticoding.com/how-to-setup-phoenix-liveview/">Setup&lt;/a>&lt;/li>
&lt;li>The Primitives (this article)&lt;/li>
&lt;li>&lt;a href="https://www.poeticoding.com/understanding-liveview-build-a-gallery-app/">Building a Gallery app&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>In the previous article we saw &lt;a href="https://www.poeticoding.com/how-to-setup-phoenix-liveview/">how to setup Phoenix LiveView&lt;/a>, in order to have everything we need to build a simple LiveView &lt;em>gallery app&lt;/em>.&lt;/p></description></item><item><title>How to Setup Phoenix LiveView</title><link>https://www.poeticoding.com/how-to-setup-phoenix-liveview/</link><pubDate>Tue, 29 Oct 2019 17:18:48 +0000</pubDate><guid>https://www.poeticoding.com/how-to-setup-phoenix-liveview/</guid><description>&lt;p>&lt;em>Updated for LiveView &lt;strong>0.11.0 - 7th April 2020&lt;/strong>&lt;/em>&lt;/p>
&lt;p>&lt;strong>Understanding Phoenix LiveView&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Setup &lt;em>(this)&lt;/em>&lt;/li>
&lt;li>&lt;a href="https://www.poeticoding.com/the-primitives-of-phoenix-liveview/">The Primitives&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.poeticoding.com/understanding-liveview-build-a-gallery-app/">Build a Gallery app&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>&lt;a href="https://github.com/phoenixframework/phoenix_live_view" target="_blank" rel="noopener">Phoenix LiveView&lt;/a> has been released on &lt;a href="https://hex.pm/packages/phoenix_live_view" target="_blank" rel="noopener">Hex&lt;/a>! Although it&amp;rsquo;s still not a stable release (at the time of writing &lt;strong>0.11.0&lt;/strong>), it works really well and it&amp;rsquo;s packed of cool features.&lt;/p></description></item><item><title>Using Select2 with Phoenix LiveView</title><link>https://www.poeticoding.com/using-select2-with-phoenix-liveview/</link><pubDate>Thu, 11 Jul 2019 15:19:10 +0000</pubDate><guid>https://www.poeticoding.com/using-select2-with-phoenix-liveview/</guid><description>&lt;p>&lt;strong>IMPORTANT&lt;/strong>: It&amp;rsquo;s now possible to do LiveView JS interop with hooks, which make everything much simpler and smoother! I&amp;rsquo;ve published an updated version of the article: &lt;a href="https://www.poeticoding.com/phoenix-liveview-javascript-hooks-and-select2/">Phoenix LiveView JavaScript Hooks and Select2&lt;/a>.&lt;/p>
&lt;p>LiveView doesn&amp;rsquo;t support JavaScript interop at the moment (but it&amp;rsquo;s a planned feature). So, let&amp;rsquo;s see how we can come up with a workaround to make LiveView playing together with a JavaScript library like &lt;a href="https://select2.org" target="_blank" rel="noopener">Select2&lt;/a>.&lt;/p></description></item><item><title>Phoenix LiveView live_link</title><link>https://www.poeticoding.com/phoenix-liveview-live_link/</link><pubDate>Wed, 26 Jun 2019 14:45:03 +0000</pubDate><guid>https://www.poeticoding.com/phoenix-liveview-live_link/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/MIKMZpPPuMI" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>In &lt;a href="https://www.poeticoding.com/phoenix-liveview-change-the-url-without-refreshing-the-page/">the previous article focused on &lt;code>live_redirect&lt;/code>&lt;/a>, we&amp;rsquo;ve seen how in Phoenix LiveView we can change the URL without changing the location or refreshing the page. In this way we can keep the URL updated with the current page state, making easier for the user to bookmark or share it.&lt;/p></description></item></channel></rss>