MaxRow is a library to help you to create a editable area, which limit users to input no more than exact rows.
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>
import maxRow from "maxrow";
// init controller
let word = new maxRow({selector:"#word",row:3})
// create a sprite
word.setText('Hello world!');
selector
:#id
DOM selector, default: bodyrow
:(number)
max rows limited, default: 3dialog
:(function)
popup msg dialog, default: alert
MaxRow aims to support all major browsers even in older versions:
Firefox 26+, Chrome 30+, Safari 5.1+, Opera 10+, IE 9+
I am a creative coder based in Xiamen, China.
Learn more on my website or Follow me on Weibo
MaxRow is dual licensed under the MIT.
For more information click here.