asticode / go-astilectron

Build cross platform GUI apps with GO and HTML/JS/CSS (powered by Electron)
MIT License
4.9k stars 344 forks source link

Text Input? #288

Closed micahlhoover closed 3 years ago

micahlhoover commented 3 years ago

I'm sure there is probably a way to take user input, but I didn't see anything about it in the examples.

I'm thinking about something analogous to or a text edit or something like that. A text area option would be cool too.

Apologies if there is already something like this and I missed it.

asticode commented 3 years ago

@micahlhoover the simplest solution would be to do that interaction in JS and send the value to GO if need be. You can use a <input type="text"/> and then use these tricks