Skip to content

aykutkardas/leblebi.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leblebi.js logo

Cool and easy to autocomplete library. ⚡️

leblebi.js preview

init leblebi

 <script src="./leblebi.js"></script>

"target" your input element "source" your data

and start for JSON

  var keywords = [
    { tag: 'Leblebi' }, 
    { tag: 'Çelebice' }, 
    { tag: 'İlelebet' }, 
    { tag: 'Kalebent' }, 
    { tag: 'Plebisit' }
  ];
  
  leblebi({
      target: '.search',
      source: keywords,
      field: 'tag'
  });

or Array

  var keywords = ['Leblebi', 'Çelebice', 'İlelebet', 'Kalebent', 'Plebisit'];
  
  leblebi({
      target: '.search',
      source: keywords
  });

JQuery support

 var keywords = ['Leblebi', 'Çelebice', 'İlelebet', 'Kalebent', 'Plebisit'];
 
 $('.search').leblebi({source:keywords});

About

Cool and easy to autocomplete library. ⚡️

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published