Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull from Updated Fork: Jobvite/ajax-chosen #10

Open
ProLoser opened this issue Feb 15, 2012 · 1 comment
Open

Pull from Updated Fork: Jobvite/ajax-chosen #10

ProLoser opened this issue Feb 15, 2012 · 1 comment

Comments

@ProLoser
Copy link

So I've been working on some enhancements and went perusing through the assorted forks of ajax-chosen to see who had the most fleshed out version. I settled on a fork which seemed to integrate all the features that were merely touched upon in all the other forks, and merged in a fix from some other branches.

On top of that I added a very new feature: initialQuery

initialQuery allows you to populate the dropmenu when the chosen widget is first opened (on click or focus). This way you can show for instance the first 50 records and then start firing subsequent ajax requests for 10 records at a time.

Extra data is passed to the callback function so that you can determine how the ajax is being triggered (focus vs keyup) allowing you to modify the request accordingly.

I will subsequently be adding 2 major features in the near future

  1. I will be adding ajax-powered pagination when you scroll through the list. Our company has thousands of records and they want to have it so when you scroll to the bottom of the widget, another ajax request is fired pulling in another batch of records.
  2. Rich formatting in the dropmenu. This will probably be applied to the core widget however, but will allow you to add things such as images, newlines, bold text, etc to each item in the dropmenu.
@meltingice
Copy link
Owner

Taking a look at this and testing it out, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants