Comments (6)
Do you want to clear out the input field after a selection is made?
If so, use clear-selected.
from angucomplete-alt.
I'm doing it:
$scope.selectedObject = function(data) {
if (data) {
var contact = data.title + ' <'+ data.description+'>, '
$timeout(function() {
angular.element('#contacts_value').val(contact)
}, 50);
};
}
The input be a isolate scope, I not get the model searchStr from parent and
change the value for selection to this above. Notice the '<' '>' to change
de value from selected
2014-07-14 15:06 GMT-03:00 Hidenari Nozaki [email protected]:
Do you want to clear out the input field after a selection is made?
If so, use clear-selected.—
Reply to this email directly or view it on GitHub
#16 (comment)
.
from angucomplete-alt.
I'm sorry, I don't understand what you are trying to do here.
- User types in some characters.
- Suggestions show up.
- User selects a suggestion.
- Input field gets cleared?
- And what else?
from angucomplete-alt.
The input's model is searchStr, so, before put suggestion in input tag, I
want change this.
- User types in some characters. ok
- Suggestions show up. ok
- User selects a suggestion. ok {name: 'User', description: 'Something'
- Input field gets cleared? Maybe.
- And what else? Put in input tag: "User (Something)" Notice the "()"
Thanks
2014-07-14 17:16 GMT-03:00 Hidenari Nozaki [email protected]:
I'm sorry, I don't understand what you are trying to do here.
- User types in some characters.
- Suggestions show up.
- User selects a suggestion.
- Input field gets cleared?
- And what else?
—
Reply to this email directly or view it on GitHub
#16 (comment)
.
from angucomplete-alt.
I don't think it's possible.
from angucomplete-alt.
I don't think it is a good user experience.
User sees a list of names in the suggestion, but once he makes a selection, what he sees is the selection with extra information.
What you can do is to prepare data attribute called nameAndDescription which has something like 'User (description)' so that he sees this string in the suggestion then when he selects it, it is inserted into input field.
from angucomplete-alt.
Related Issues (20)
- Autocomplete-alt
- Console error message
- Angucomplete-alt
- Filtered result disappearing In IE if the data is large
- Tap on Autocomplete-alt dropdown causes updating results on android HOT 6
- Angucomplete-alt : one error results from the $injector being unable to resolve a required dependency after adding the angucomplete-alt module to my Angular App file, e.g.
- After adding the angucomplete-alt module to my Angular App file, I got an error 'being unable to resolve a required dependency' on console. What's wrong?
- Duplicate ng-focus on input
- .title not working when selected-object is a function
- How to pass index into selected-object HOT 1
- If data comes in binary format in name filed then it is going to be ng-invalid.
- Error: [$injector:modulerr]
- Unable to get the data with proper format in HTML in angular js
- Using arrow down starts from the second item HOT 1
- Using arrows may leave inconsistent value in the input field HOT 1
- RemoteUrlErrorCallback is undefined
- Address Auto Complete not working on Mozilla Firefox but working on Chrome and IE
- Custom search doesn't trigger function within controller HOT 1
- *.md
- angucomplete-alt select issue HOT 1
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 angucomplete-alt.