MaratSH
Modal live_components on group of pages
I need to create a website where a group of pages have a button on header, let’s suppose “authorize”. And on pressing that it should open a modal screen for entering some user auth data. I know how to create a modal “inside” of some live_view (how it was generated using phx.gen.live). But i cannot realize universal way of integrating this modal for a group of pages. I though about something like app.html.heex which work for every live_view, but didn’t succeed. I newbee in elixir/phoenix/web dev, so feel free to explain as for a child, if share some examples will be great
Most Liked
Zurga
Hi Marat!
I searched around and found this thread which seems to have the solution you are looking for: How to use LiveComponents in Layouts, in the latest live view? - #4 by derpycoder
Good luck!
MaratSH
Hello and thank you! Took a while to get the idea
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









