sharkdp / purescript-flare

A special-purpose UI library for Purescript
287 stars 17 forks source link

Support textarea in addition to text field #25

Closed 0dB closed 7 years ago

0dB commented 7 years ago

I am using purescript-flare to transform data entered into a textfield into an HTML table, applying some processing on the way (time-sheet data). It would be cool to be able to use a textarea instead so that users see their raw input with newlines and all.

(It is my understanding that this would mean adding a foreign function that creates a textarea component. Unfortunately my JS know-how is practically zero otherwise I would try it myself.)

sharkdp commented 7 years ago

This should be supported now. Would be great if you could test this.

0dB commented 7 years ago

Works, thank you very much!

Now I can see all rows of data, and, most importantly, parse lines via \n.

sharkdp commented 7 years ago

Thanks for testing!