Comments (2)
Yeah - this plugin wasn't designed to do #1. If a user presses the down arrow while the input has focus, then it will show the list of suggestions. You could add a focus event handler to the input that calls makeSuggestions
with the event as the first parameter and true as the second (this will cause the plugin to display all the suggestions when the input is empty). I don't plan to implement this in the near future.
I havent tried this, but something like:
src/bootstrap-tags.coffee
L370
@onFocusHandler = (event) =>
@makeSuggestions(event, true)
L390
@input.focus @onFocusHandler
Or if you'd rather just hack on the javascript
dist/js/bootstrap-tags.js
L409
this.onFocusHandler = function(event) {
this.makeSuggestions(event, true);
};
L427
this.input.focus(this.onFocusHandler);
from bootstrap-tags.
thank you very much
------------------ 原始邮件 ------------------
发件人: "David Stanley";[email protected];
发送时间: 2014年1月28日(星期二) 晚上10:47
收件人: "maxwells/bootstrap-tags"[email protected];
主题: [bootstrap-tags] How to get suggestion list (full list) to show whentags-input receives focus? (#23)
Not sure if this is the right place for this question. Close this if it isn't. I have the plugin all set up and working. What I would like to have is either one of these things (prefferably number 1):
Rather than have a tag input, I would like a drop down list of all my available tags (I am restricting input). When they click one, it adds the tag.
Using the input rather than drop down list, when the input receives focus, show the whole list of suggestions.
—
Reply to this email directly or view it on GitHub.
from bootstrap-tags.
Related Issues (20)
- GitHub repo description misspelling HOT 1
- ajax autocomplete option HOT 1
- mistaken repo
- Tag removal fails with special character (namely '&') HOT 1
- Readonly tags and position absolute HOT 1
- why not border-box
- Making readonly responsive HOT 1
- promptText option ignored on initialization
- Popover does not auto close
- How to define a click function on the tag? HOT 1
- How to maintain the listing of open suggestions?
- Chainable "tagger object" documentation
- How to show suggestions before typing HOT 3
- npm package
- Readme out of date. tags is not a function
- input-sm: tags too big. HOT 1
- Call for Maintainers HOT 1
- When I create a a tag-list input field is not displayed correctly HOT 2
- "beforeDeletingTag" function(tag), always return last tag name.
- get Suggestion from Database mysql
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-tags.