emailime
v1.0.3
Published
Email IME is a JavaScript library for enter multiple email addresses. It's javaScript based. It works in all modern desktop browsers and doesn't depend on any external libraries.
Downloads
9
Readme
Email IME
Email IME is a JavaScript library for enter multiple email addresses. It's javaScript based. It works in all modern desktop browsers and doesn't depend on any external libraries.
Demo
Demo works in desktop browsers.
Installation
You can install the latest release using npm:
npm install --save emailime
You can also add it directly to your page using <link>
and <script>
tag:
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/emailime/emailIME.css"/>
<script src="https://cdn.jsdelivr.net/npm/emailime/emailIME.min.js"></script>
This library is provided as UMD (Universal Module Definition).
Usage
If you install the release using npm, please require 'emailime' in the file where you need or In your entry js, main.js mostly.
const emailIME = require('emailime')
API
var baseNode = document.querySelector("div");
var example = new emailIME(baseNode, '收件人', ['[email protected]']);
// add email addresses from Array
var list = ['[email protected]','[email protected]','[email protected]']
example.addAddrs(list)
// get email addresses as Array
example.getAddrs()
// remove the emailIME
example.destroy()
License
Released under the MIT License.