Coder Social home page Coder Social logo

autocompletejs's Introduction

autocompletejs's People

Contributors

existentialism avatar imalooney avatar oakmac avatar pgambling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autocompletejs's Issues

Add some animations

Add some animation when token groups are added / removed

use CSS3 animations

how to deal with right-arrow behavior?

Right now it's being treated as a "regular key" and resetting the option highlight to the top of the list. This is probably not what we want.

At the same time, we don't want to disable how it works in the input element, so we can't just kill the event.

matchProperties should be an array to specify matching order

that chain from one to the next, removing matched options along the way

  1. front-matching strings
  2. any character matching
  3. user-defined list of properties to match against in option.value

also should allow the user to turn off smart matching completely for AJAX calls

Add event for new token groups

onChange fires for every new token, but this isn't useful if I only care about complete token groups. An event that fires when a token group is complete would be useful because that's when I would want to fire off an AJAX request.

Create Errors List

Need to document all of the error codes so that people can find them in a search

Provide common fixes and reasons for the error

add "addInput" method

that allows the user to simulate typing characters on the input field

could make a sweet demo showing functionality

also need a "selectHighlightedOption" and "moveHighlightUp / Down" methods

"use once" options

need to put the config on the Option Object as well as the List Object

What to do about sorting options?

Need to figure out how we want to deal with sorting options.

They're stored in an array, so they have order.

They get displayed based on the order of the matchOptions functions, but the order in which those functions find them is the order they're stored in the array.

There's also the addOption method, which pushes a new option onto the end of the array. Maybe an optional third argument to that function could be a sort function for the list once the option has been added.

Maybe I should provide a general purpose "map" method for options so the user can pass in a function that gets applied to all options in a list?

Also an idea to punt on this issue and make the user sort their own options. If they want to add an option and then sort they need to update the whole list.

re-factor CSS

Need to get the basic CSS to be not dependent on bootstrap defaults.

Also think I should make the base CSS pure CSS and not depend on LESS.

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.