0.1.3 • Published 6 years ago

mirror-txt.js v0.1.3

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
6 years ago

Mirror.js

NPM package to make mirroring textfields easier
Include with npm install mirror-txt.js
How to use:
Compatable text inputs are <textarea> and <input type="text">
Compatable text fields are anything with either a value or textContent attribute

//mirror mode
mirror({mainField: /*Main text input ID*/, additionalFields: [/*Array of IDs to mirror to*/], options?{clone: false}})
//clone mode
mirror({mainField?: /*will be ignored if clone = true*/ , additionalFields: [/*Array of IDs to be cloned to/from*/], options{clone: true}}})