tweakpane icon indicating copy to clipboard operation
tweakpane copied to clipboard

multiline text input / textarea

Open jkozniewski opened this issue 2 years ago • 7 comments

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

jkozniewski avatar Mar 30 '22 10:03 jkozniewski

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

patkwee avatar Apr 14 '22 14:04 patkwee

@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 avatar Apr 15 '22 11:04 jkozniewski

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

jkozniewski avatar Apr 15 '22 11:04 jkozniewski

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

jkozniewski avatar Apr 16 '22 12:04 jkozniewski

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.

cocopon avatar Apr 18 '22 03:04 cocopon

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?

literallylara avatar Apr 18 '22 11:04 literallylara