Skip to content

Add sina weibo like mentions autocomplete with zero dependency

Notifications You must be signed in to change notification settings

luowenxing/At.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

At.js

Mentions autocomplete like At.js with zero dependency and easy usage if you just want something like sina weibo @ mentions

Usage

<link rel="stylesheet" type="text/css" href="at.css">
<script type="text/javascript" src="at.js"></script>

Open index.html and you will see how it works.

Options

{
  fetchList:function(cb){ cb([]) }, // get autocomplete suggestions list with callback
  onAtChange:function(atData) {},   // get all @ data in list when changed.
  seperator:' ', // seperator between @ items
  at:'@', // @ symbol
  getText:function(data) { return data.text } // the text show after @. If null will show list data itself
}

About

Add sina weibo like mentions autocomplete with zero dependency

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published