Elm.fullscreen is not a function

985 views
Skip to first unread message

Stuart Axon

unread,
Jun 29, 2016, 5:29:24 AM6/29/16
to Elm Discuss
I've been getting started with elm using the environment described here  https://boonofcode.svbtle.com/setting-up-an-atom-elm-dev-environment   I have an index.html as below, but am getting -

TypeError: Elm.fullscreen is not a function

Any idea what I need to change ?


<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>My App</title>
        <link rel="stylesheet" href="css/style.min.css">
    </head>
    <body>
        <script src="gen/main.js"></script>
        <script>
            Elm.fullscreen(Elm.Main);
        </script>
    </body>
</html>


Peter Damoc

unread,
Jun 29, 2016, 5:35:19 AM6/29/16
to Elm Discuss
 Elm.fullscreen(Elm.Main);
become
 Elm.Main.fullscreen();
in 0.17

More info here: 
http://guide.elm-lang.org/interop/html.html

--
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.



--
There is NO FATE, we are the creators.
blog: http://damoc.ro/

Denis Kolodin

unread,
Jul 21, 2017, 9:55:42 AM7/21/17
to Elm Discuss
Another reason for 0.18: I take `Elm.MyApp.fullscreen is not a function` when I forget to add `main` (which calls `Html.program`) function to MyApp module.

Allan Clark

unread,
Aug 1, 2017, 11:16:49 PM8/1/17
to elm-d...@googlegroups.com
Also new to Elm so I may be wrong, but assuming your program is
defined in the module 'Main.elm' I think you want:

Elm.Main.fullscreen();
Reply all
Reply to author
Forward
0 new messages