inputadviser

1.1.1 • Public • Published

html-InputAdviser

An adviser for HTML input tag

Preview

preview

Get

1. Directly use dist/InputAdviser.js

Just load InputAdviser.js by script tag and the InputAdviser is the class object.

2. Install from npm

npm i inputadviser

Then in your javascript code

import InputAdviser from 'inputadviser'

Usage

new InputAdviser('selector of the input or the element',async word=>{
	let list=[];
	//do something to get advice list
	list=[//just values
		'abc',
		'bdc',
		'poi',
	];

	list=[//values with descriptions
		{
			value:'abc',
			desc:'this is abc',
		},
		{
			value:'bdc',
			desc:'this is bdc',
		},
		{
			value:'poi',
			desc:'this is poi',
		},
	];
	return list;
});

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i inputadviser

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    7.36 kB

    Total Files

    7

    Last publish

    Collaborators

    • luojia