1.1.3 • Published 3 years ago

maxrow v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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: body
  • row: (number) max rows limited, default: 3
  • dialog: (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.

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago