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

Default Suggestions #280

Closed
sambenne opened this Issue Jan 9, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@sambenne

sambenne commented Jan 9, 2017

This is a nice plugin. But I am wanting to do something which I am unsure if this can do it. Basically what I want to do is when clicking the input it will automatically show some suggestions just like the results. When you start typing the suggestions go away unless the input is empty.

@running-coder

This comment has been minimized.

Owner

running-coder commented Jan 9, 2017

Hey @sambenne I had this idea a while back but never implemented it. This could be used to save the "previous searches" as well up to X input characters. Definitly a cool thing to implement in a future release

@running-coder running-coder added this to the 2.8.0 milestone Jan 27, 2017

running-coder added a commit that referenced this issue Feb 5, 2017

Add #280 suggestions, if group is set to `maxLength: 0` and global is…
… set to `maxLength: 1`

Add `option.maxLength` to not search inside a group if above X characters
Add group option to override the global config for `minLength`, `maxLength` and `dynamic`
Add Deferred object for searching dynamic groups `this.node.triggerHandler('input').then(() => {})`
Changed `dynamic` input event to `search`
Fix issue when `maxItem` and `maxGroupItem` would send inaccurate results
@running-coder

This comment has been minimized.

Owner

running-coder commented Feb 12, 2017

A demo is added inside develop branch on how to use it

running-coder added a commit that referenced this issue Mar 1, 2017

Version 2.8.0

Features

- #302 `cache`, `compression` and `ttl` can now be configured at group level
- #299, #304 Add `templateValue` option
- #280 Default suggestions, added suggestion_v1 demo
- #275 Dynamic sources, each groups can now be configured to be `dynamic: true`
- #284 Added option `blurOnTab` to blur Typeahead when "Tab" key is pressed
- #262 Add `onDropdownFilter` callback
- Add `maxLength` option

Fixes

- #297 Duplicated entries in dropdown filters
- #286 Using dynamic, groupOrder and groupTemplate options, the results are empty after the second search
- #285 "undefined" is appearing in the template when a key is not defined instead of empty string
- #283 issue when Ajax `path` config is left blank
- #281 multi level deep data inside the source objects
- #274 onCancel event
- #270 Hide autocomplete suggestions when text input loses focus

running-coder added a commit that referenced this issue Mar 1, 2017

Version 2.8.0
Features
- #302 `cache`, `compression` and `ttl` can now be configured at group level
- #299, #304 Add `templateValue` option
- #280 Default suggestions, added suggestion_v1 demo
- #275 Dynamic sources, each groups can now be configured to be `dynamic: true`
- #284 Added option `blurOnTab` to blur Typeahead when "Tab" key is pressed
- #262 Add `onDropdownFilter` callback
- Add `maxLength` option

Fixes
- #297 Duplicated entries in dropdown filters
- #286 Using dynamic, groupOrder and groupTemplate options, the results are empty after the second search
- #285 "undefined" is appearing in the template when a key is not defined instead of empty string
- #283 issue when Ajax `path` config is left blank
- #281 multi level deep data inside the source objects
- #274 onCancel event
- #270 Hide autocomplete suggestions when text input loses focus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment