Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextArea in Elm

Tags:

elm

I am trying to use the elm form demo as the basis for my app, but I can't for the life of me figure out how to make a text area instead of the 1 line input? What am I missing

like image 685
Zachary K Avatar asked Sep 07 '14 17:09

Zachary K


2 Answers

This answer can be updated now:

textarea [ cols 40, rows 10, placeholder "...", onInput ... ] []
like image 83
Christopher G Avatar answered Nov 15 '22 09:11

Christopher G


This should be possible now with elm-html. It's a library to add any html directly, so textareas should be easy to work with.

It's new, so documentation and examples are sparse, but this should change.

Here's an example document editor, written in Elm, with textareas: http://dreamwriter.io

and the code: https://github.com/rtfeldman/dreamwriter

like image 7
AdrianoFerrari Avatar answered Nov 15 '22 11:11

AdrianoFerrari