Yes, I know Element is available in the package. But without the Input 
stuff and without being able to convert Html to Element, is it not very 
useful to create GUIs.
Perhaps it can be enhanced in the future to produce Cmds for the Elm 
Architecture. :)



On Monday, May 16, 2016 at 4:41:51 PM UTC+2, Peter Damoc wrote:
>
> Graphics.Element is available as `Element` in the new evancz/elm-graphics 
> package but I would be surprised to see any of the Graphics.Input.* stuff 
> become available again. 
>
> Any kind of input should be handled through the Elm Architecture.
>
>
>
>  
>
> On Mon, May 16, 2016 at 5:05 PM, Tobias Hermann <[email protected] 
> <javascript:>> wrote:
>
>> I liked what Graphics.Element had to offer. For example using 
>> Graphics.Input.dropDown was pleasant. At the very moment I am trying to 
>> convert my code to Html.something. And it looks like having a simple 
>> drop-down menu has become much more complicated.
>> Do you guys see any chance Graphics.Element could get its old power back 
>> in the not-so-distant future?
>>
>>
>> On Monday, May 16, 2016 at 3:52:12 PM UTC+2, Peter Damoc wrote:
>>>
>>> Html layout is no longer the pain that it used to be back when Elm 
>>> started. 
>>> The adoption of the flexbox fixed most of the problems. 
>>>
>>> Not it is trivial to center a div if one uses flexbox.
>>>
>>> Of course, it would be oh so lovely to be able to brainstorm, as a 
>>> group, a way to do layout that makes use of the power of Elm. 
>>> Unfortunately, I don't have enough practical experience with web-dev in 
>>> order to do that. 
>>>
>>>
>>>
>>> On Mon, May 16, 2016 at 4:22 PM, Tobias Hermann <[email protected]> 
>>> wrote:
>>>
>>>> OK, I understand.
>>>>
>>>> Right now I am updating my projects to version 0.17. I see the benefits 
>>>> of the Elm Architecture. The model/update parts become much cleaner 
>>>> compared to the old Signal way.
>>>>
>>>> But at the same time I am disappointed with the view parts. Elm once 
>>>> used slogans like "Centering a div should be easy." and "Try this with 
>>>> Html/CSS." to advertise itself. But now I have to painfully wade through 
>>>> all the annoying CSS stuff <http://i.imgur.com/oZXdQdV.gif> again to 
>>>> position widgets.
>>>>
>>>>
>>>> On Monday, May 16, 2016 at 2:29:08 PM UTC+2, Peter Damoc wrote:
>>>>>
>>>>> I'm not satisfied enough with the API to publish it. 
>>>>>
>>>>> This is mainly because I haven't yet done anything serious with it. :) 
>>>>>
>>>>>
>>>>>
>>>>> On Mon, May 16, 2016 at 11:05 AM, Tobias Hermann <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Wow, this looks extremely useful. I think this would make a great 
>>>>>> package and should not stay hidden in some github gist. *wink*
>>>>>>
>>>>>>
>>>>>> On Monday, May 16, 2016 at 9:46:50 AM UTC+2, Peter Damoc wrote:
>>>>>>>
>>>>>>> you can easily use Html for layout and create your own little layout 
>>>>>>> language with functions. 
>>>>>>>
>>>>>>> For example, you can use this playground for visually thinking about 
>>>>>>> the layout:
>>>>>>>
>>>>>>> https://demos.scotch.io/visual-guide-to-css3-flexbox-flexbox-playground/demos/
>>>>>>> and a little helper module like this one:
>>>>>>> https://gist.github.com/pdamoc/c07eee6b7ab761853d59d8db01d89b71
>>>>>>>
>>>>>>> to allow you to express your layout like 
>>>>>>>
>>>>>>> greyCenterStretch = 
>>>>>>>    div [ design <| justifyCenter <| alignItemsStretch <| 
>>>>>>> [("background", "grey")] ]    
>>>>>>>
>>>>>>> bottomDiv = div [design <| alignSelfEnd []]
>>>>>>>
>>>>>>> view model = 
>>>>>>>     greyCenterStretch 
>>>>>>>     [ bottomDiv
>>>>>>>         [ ... ]
>>>>>>>     , ...
>>>>>>>     ]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, May 16, 2016 at 10:29 AM, Tobias Hermann <[email protected]> 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Ok, thank you.
>>>>>>>> I liked to align input boxes etc. with the functions from 
>>>>>>>> Graphics.Element, because it isolated me from all the HTML/div/CSS 
>>>>>>>> thinking.
>>>>>>>> But of course I understand. Also thanks for the remark about 
>>>>>>>> Graphics.Input. I was already wondering where it went. ;-)
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sunday, May 15, 2016 at 11:32:53 PM UTC+2, Janis Voigtländer 
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> No, this conversion is not conceptually possible anymore. Html can 
>>>>>>>>> have event listeners attached, but post-0.16 Elements are weaker than 
>>>>>>>>> 0.16 
>>>>>>>>> Elements in that they don't support events anymore (hence also no 
>>>>>>>>> Graphics.Input module anymore). Thus, the conversion from Html to 
>>>>>>>>> Element 
>>>>>>>>> had to go.
>>>>>>>>>
>>>>>>>>> (Conceptually, it should still be possible to convert values of 
>>>>>>>>> type Html Never to Element, but it's not implemented.)
>>>>>>>>>
>>>>>>>>> Am Sonntag, 15. Mai 2016 schrieb Tobias Hermann :
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I used to utilize Html.toElement to embed divs in flow down 
>>>>>>>>>> lists etc. from Graphics.Element.
>>>>>>>>>> Html.toElement is gone with the version update. Is there still 
>>>>>>>>>> something available for this conversion?
>>>>>>>>>>
>>>>>>>>>> Tobias
>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>>> 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.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -- 
>>>>>>> There is NO FATE, we are the creators.
>>>>>>> blog: http://damoc.ro/
>>>>>>>
>>>>>> -- 
>>>>>> 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.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> There is NO FATE, we are the creators.
>>>>> blog: http://damoc.ro/
>>>>>
>>>> -- 
>>>> 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.
>>>>
>>>
>>>
>>>
>>> -- 
>>> There is NO FATE, we are the creators.
>>> blog: http://damoc.ro/
>>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>

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

Reply via email to