elm-graphics icon indicating copy to clipboard operation
elm-graphics copied to clipboard

Possibility of Element.fromHtml : Int -> Int -> Html Never -> Element

Open jvoigtlaender opened this issue 8 years ago • 0 comments

It is clear that the former Html.toElement : Int -> Int -> Html -> Element cannot exist anymore, since the Html type comes with the possibility of attached event handlers that the Element implementation is not anymore prepared to deal with. But since on the other hand it is now possible to express in the form of Html types that definitely no event handlers are attached at all, I want to at least raise here the possibility of having

Html.toElement : Int -> Int -> Html Never -> Element

or

Element.fromHtml : Int -> Int -> Html Never -> Element

That could alleviate some pains people have from the elm-graphics changes, since at least static html would be embeddable in Elements and Forms for free-form positioning etc.

jvoigtlaender avatar May 19 '16 18:05 jvoigtlaender