maxrow
v1.1.3
Published
MaxRow is a library to help you to create a editable area, which limit users to input no more than exact rows.
Downloads
2
Readme
MaxRow
MaxRow is a library to help you to create a editable area, which limit users to input no more than exact rows.
Installation
Option 1: npm
If you prefer the node package manager, feel free to use it.
Keep in mind that like with bower non-crucial files will be ignored (see above).
npm install maxrow
Option 2: Bower
Include the core library in your HTML file:
<script src="../lib/maxrow.min.js"></script>
Usage
import maxRow from "maxrow";
// init controller
let word = new maxRow({selector:"#word",row:3})
// create a sprite
word.setText('Hello world!');
Parameters
selector
:#id
DOM selector, default: bodyrow
:(number)
max rows limited, default: 3dialog
:(function)
popup msg dialog, default: alert
Browser Support
MaxRow aims to support all major browsers even in older versions:
Firefox 26+, Chrome 30+, Safari 5.1+, Opera 10+, IE 9+
About the Author
I am a creative coder based in Xiamen, China.
Learn more on my website or Follow me on Weibo
License
MaxRow is dual licensed under the MIT.
For more information click here.