Coder Social home page Coder Social logo

cqcqing / emailime Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 21 KB

一个邮箱输入插件,可通过左右方向键在邮箱地址之间切换光标,响应backspace、enter等按键,可以拖选、拖移多个邮箱地址。

License: MIT License

CSS 3.40% JavaScript 96.60%

emailime's Introduction

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.

Example

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.

emailime's People

Contributors

cqcqing avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.