The example in the guide (the link that Matthew sent) is about as compact as you're going to find as an example.
I know you're probably looking for a simple example, but calling an external javascript method is not a one-liner in Elm. On Thu, Oct 13, 2016 at 5:46 AM, António Ramos <[email protected]> wrote: > any example of calling an external js method ? > > 2016-10-13 12:44 GMT+01:00 Matthew Griffith <[email protected]>: > >> You still have to use ports. Check out the SpellCheck part of this >> https://guide.elm-lang.org/interop/javascript.html >> >> >> On Thursday, October 13, 2016 at 5:00:47 AM UTC-4, António Ramos wrote: >>> >>> hello i know that i have to use ports to pass data from elm to >>> javascript but if i want to call an external library method inside my elm >>> is there a way to do it? >>> As i load my exeternal js file before my compiled elm in my index.html >>> file there should be a way right? >>> >>> regards >>> António >>> >> -- >> 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 [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
