Created
November 17, 2019 18:23
-
-
Save maxfarseer/86332ea8eadb501b54222d23912e2d88 to your computer and use it in GitHub Desktop.
Add custom web element & logic (Elm, Canvas, Fabric.js)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Main.elm -> добавляем "port" | |
port module Main exposing (main) | |
-- ... | |
-- добавляем команду | |
port sendDataToJs : String -> Cmd msg | |
-- update функция | |
case msg of | |
-- ... | |
MsgToJs -> | |
( model, sendDataToJs "base64 string here...." ) | |
-- ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment