Does anyone have any pointers for how to repeatedly embed an Elm view on a page, particularly from JS? The use case would be for some type of embedded widget that people can insert into their page where each instance would correspond to a different id of some type. Imagine a widget that embeds live updating twitter feeds for different users where web page owners would be able to create buttons that launch live update windows.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What have you tried and what problems did you encountered?
Here are 3 counters embedded in the same page with different info passed through flags.
https://ellie-app.com/439PSrgx4dxa1/1
Why wouldn't something like this work?On Tue, Aug 15, 2017 at 9:14 PM, Anthony Naddeo <anthony...@gmail.com> wrote:Does anyone have any pointers for how to repeatedly embed an Elm view on a page, particularly from JS? The use case would be for some type of embedded widget that people can insert into their page where each instance would correspond to a different id of some type. Imagine a widget that embeds live updating twitter feeds for different users where web page owners would be able to create buttons that launch live update windows.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/N9OQVt2YHh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
Assuming I get that to work, what does embed actually do? Is each instance totally isolated? Does the elm runtime bootstrap itself each time? To share state, we'll have to use ports?