Skip to content

onedionys/onedionys-input-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to One Dionys - Input Autocomplete! 👋

Functions to provide recommendations or auto-complete user input in forms. 💖

💾 Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

🎯 How To Use

Example Syntax

const Autocomplete = require('./src/autocomplete');

// Example usage
const data = ['apple', 'banana', 'orange', 'pineapple', 'grape'];
const autocomplete = new Autocomplete(data);

// Searching for items
const result = autocomplete.search('a');
console.log(result); // Output: ['apple', 'banana', 'orange', 'grape']

Explanation

  • This package provides a simple autocomplete functionality for input fields. It takes an array of data as input and returns matching items based on the query string provided.

Return Value

  • The search method of the Autocomplete class returns an array containing the items that match the query string provided. If no match is found, it returns an empty array.

📆 Release Date

  • v1.0.0 : 08 March 2024
  • v1.0.1 : 11 March 2024
  • v4.0.0 : 11 March 2024
  • v4.0.1 : 14 March 2024
  • v4.0.2 : 18 March 2024
  • v5.0.0 : 31 March 2024

🧑 Author

📝 License

  • Copyright © 2024 One Dionys
  • One Dionys - Input Autocomplete is an open source project licensed under the MIT license

☕️ Suppport & Donation

Love One Dionys - Input Autocomplete? Support this project by donating or sharing with others in need.

Made with ❤️ One Dionys