Skip to content

WaveF/tweakpane-textarea-plugin

 
 

Repository files navigation

Textarea plugin for Tweakpane

Version

Simple textarea (multiline text input) plugin for Tweakpane.
image

Installation

Browser

<script src="tweakpane.min.js"></script>
<script src="tweakpane-textarea-plugin.min.js"></script>
<script>
  const pane = new Tweakpane.Pane();
  pane.registerPlugin(TweakpaneTextareaPlugin);
</script>

Package

import {Pane} from 'tweakpane';
import * as TextareaPlugin from './src/tweakpane-textarea-plugin';

const pane = new Pane();
pane.registerPlugin(TextareaPlugin);

Usage

const params = {
  prop: 'Put your\nmultiline\ntext here!'
};

pane.addInput(params, 'prop', {
  view: 'textarea',
  lineCount: 6,
  readOnly: false,
  placeholder: 'Type here...'
}).on('change', (ev) => {
  console.log(ev.value);
});

About

Simple textarea plugin for Tweakpane

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 46.4%
  • JavaScript 36.2%
  • HTML 10.8%
  • SCSS 6.6%