Comments (7)
Thanks! glad you like it.
If you could create a Plnkr demonstrating the problem that would help. I
went ahead and created this one to demonstrate how to do what I think
you're trying to do: http://plnkr.co/edit/rD0AGP?p=preview
On Fri, May 30, 2014 at 10:21 AM, Ben Pate [email protected] wrote:
First, fantastic code. And thank you very much for posting this publicly.
I'm working to incorporate this into a project. Hopefully, you've got time
to check this out, and at least point me in the right direction to fix this.Here's the issue: When use a selectize widget in tag mode, the first
tag is added correctly, but subsequent tags not added separately, but
concatenated into the value of the original tag. I'm too new to AngularJS
directives to make a patch for this, but I can at least document what I'm
seeing in my environment:
Javascript Controller$scope.contacts = contacts; $scope.emailConfig = {
create:true,
valueField: 'contactId',
labelField: 'name',
maxItems: 100};HTML View
Screenshots: 1. The first tag works great: (yay!)
[image: single-tag]
https://cloud.githubusercontent.com/assets/4381040/3133715/4c734e20-e81d-11e3-8fcb-297be4c4086d.png
2. But the second tag doesn't :([image: double-tags]
https://cloud.githubusercontent.com/assets/4381040/3133714/4c7120dc-e81d-11e3-9a57-af99304a2fbb.png
3. And turns ugly with values instead of labelsHere, I'm using values for each record instead of names
(valueField:'contactId'). The problem is really apparent when I do this:
[image: three-tags]
https://cloud.githubusercontent.com/assets/4381040/3133802/31f1b644-e81e-11e3-9c5c-560bdfaf3a83.png—
Reply to this email directly or view it on GitHub
#2.
from angular-selectize.
You're awesome. It looks like your demo works great, so it's very possibly just a bug in my code. Thanks for the demo!
I'm offline for now, but will try to get a plnkr together shortly.
from angular-selectize.
Cool. Sounds good.
On Fri, May 30, 2014 at 4:22 PM, Ben Pate [email protected] wrote:
You're awesome. It looks like your demo works great, so it's very possibly
just a bug in my code. Thanks for the demo!I'm offline for now, but will try to get a plnkr together shortly.
—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from angular-selectize.
Looks like I had some time :) Here's my Plunk:
http://plnkr.co/edit/rdhjZFCM5tpBJabHnSdX?p=preview
I'm guessing that some of the other libraries I'm using are causing some kind of conflict. My first hunch is that it's the way that $resource is loading the contents asynchronously.
Again, thanks so much for spending your time to check this out. It's really appreciated.
from angular-selectize.
I think I found the problem. The directive needs but
you're using .
On Fri, May 30, 2014 at 6:41 PM, Ben Pate [email protected] wrote:
Looks like I had some time :) Here's my Plunk:
http://plnkr.co/edit/rdhjZFCM5tpBJabHnSdX?p=preview
I'm guessing that some of the other libraries I'm using are causing some
kind of conflict. My first hunch is that it's the way that $resource is
loading the contents asynchronously.Again, thanks so much for spending your time to check this out. It's
really appreciated.—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from angular-selectize.
Yes. That works beautifully. So, selectize.js works with either or , but the angular-selectize directive only works with . Sorry I missed that. Best wishes!
edited: Not sure how to close this ticket. I think you may need to do that part. :)
from angular-selectize.
Ya, perhaps I should make a big note on the GitHub Readme.
On Sat, May 31, 2014 at 2:06 PM, Ben Pate [email protected] wrote:
Yes. That works beautifully. So, selectize.js works with either or , but
the angular-selectize directive only works with . Sorry I missed that.
Best wishes!—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from angular-selectize.
Related Issues (20)
- Allow-Clear Option to Clear the selected value
- Restrict enter key to select the options HOT 1
- NPM repo is out of date HOT 2
- How do I select an item programatically? HOT 1
- can't include in entry webpack file....
- Angular missing as dependency in bower.json
- performance ui-select vs angular-selectize demo
- Impossible to select value in angular 1.6.4 HOT 5
- Is there a way to change maxItems value based on user activity? HOT 1
- Two dataway binding does not respect order - Regular select dropdown does HOT 2
- Angular selectize directive - I can't type in input when I select empty option
- selecting data from list and while reomving it doesnot save data on save button angularjs
- Allow edit mode for selected option HOT 1
- Handle large amount of data HOT 1
- selectize does not load
- Selectize does not seem to work in IE11 with older angular versions HOT 3
- Verision 3.0.2 does not have a release in Github HOT 1
- Input styles
- Label field going thru $sce.trustAsHtml() ? HOT 1
- When selectize-input is focused and i click on it - the Dropdown close and open every click. 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 angular-selectize.