cocopon / tweakpane

:control_knobs: Compact GUI for fine-tuning parameters and monitoring value changes
https://tweakpane.github.io/docs/
MIT License
3.43k stars 86 forks source link

multiline text input / textarea #386

Open jkozniewski opened 2 years ago

jkozniewski commented 2 years ago

Is there an option to have an multiline text field as an input ? There seems to be only multiline text monitors...

patkwee commented 2 years ago

I am also just looking for this functionality. Would be great if TweakPane would support this.

jkozniewski commented 2 years ago

@patkwee , @cocopon - actually we've created a plugin providing the text area (multiline) input - https://github.com/panGenerator/tweakpane-textarea-plugin

@cocopon not sure if it's exactly the way you envision the plugins to be implemented so if you spot something to improve just let us know :)

jkozniewski commented 2 years ago

@patkwee - sorry just realised the repo is still private, but we'll cleanup the readme and make it public today probably :)

jkozniewski commented 2 years ago

ok, it's now public and published on npm - https://www.npmjs.com/package/@pangenerator/tweakpane-textarea-plugin

cocopon commented 2 years ago

Great work @jkozniewski :clap: This feature is generic enough to be added to the core package, but this plugin will be helpful until it's implemented.

literallylara commented 2 years ago

I noticed that the textarea's change event fires on keyup (which is great for my usecase), while the core input's change event fires when it loses focus or the enter key is pressed. I think it would be great if we could either specify change or input events in the API including the core API, or is this already possible?