0.0.3 • Published 6 years ago

pseudoinput v0.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

pseudoInput

a toy <input />

install

  • npm install pseudoinput
  • <script src="pseudoinput.umd.js"></script

Usage

const Input = PseudoInput("wrappId"[, option ]);
Input.value // get value
Input.value = "Hello world" // set value
Input.onChange = (val) => {/* do something with val */}
Input.onEnter = (val) => {/* do something with val */}

Option

  • option.color text color
  • option.backgroundColor background color
  • option.cursorColor cursor color
  • option.fontSize font size
  • option.disableAutoFocus if set true, you need call Input.focus() then input
0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago