Comments (10)
Thanks for taking the time to test this thing. I got it to work after
wrapping the selectize init inside a timeout. There must have been a race
condition involving the compilation of the parent directive. I also had to
change the options hash to an array. I thought it worked before with
hashes, but I guess Selectize needs an array. Here's the plunk
http://plnkr.co/edit/ZoQKrTzB0pVozQvsgAat?p=preview. If that works for you,
I'll add the changes to the master branch.
On Wed, Jun 11, 2014 at 4:18 AM, Michael [email protected] wrote:
Hi there again,
testing the limits of your directive once more I run into some trouble
when using it inside another directive. It is like it does not understand
selectize is a directive and does not compile it.
Take a look here to see what I mean.http://plnkr.co/edit/N0uTQ18NW4v6bdV8K9HZ?p=preview
—
Reply to this email directly or view it on GitHub
#5.
from angular-selectize.
It's still adding an undefined option to the dropdown. I'll have to look at
it some more.
On Wed, Jun 11, 2014 at 9:20 AM, Will Jensen [email protected]
wrote:
Thanks for taking the time to test this thing. I got it to work after
wrapping the selectize init inside a timeout. There must have been a race
condition involving the compilation of the parent directive. I also had to
change the options hash to an array. I thought it worked before with
hashes, but I guess Selectize needs an array. Here's the plunk
http://plnkr.co/edit/ZoQKrTzB0pVozQvsgAat?p=preview. If that works for
you, I'll add the changes to the master branch.On Wed, Jun 11, 2014 at 4:18 AM, Michael [email protected] wrote:
Hi there again,
testing the limits of your directive once more I run into some trouble
when using it inside another directive. It is like it does not understand
selectize is a directive and does not compile it.
Take a look here to see what I mean.http://plnkr.co/edit/N0uTQ18NW4v6bdV8K9HZ?p=preview
—
Reply to this email directly or view it on GitHub
#5.
from angular-selectize.
hmmm ok, I am hanging tight. If there is anything I can help with let me know.
from angular-selectize.
I pushed a second version that uses 'replace' instead of 'transclude'.
Transclude was not what I meant to use. Now you will need to add the
directive to
from angular-selectize.
It appears to render inside another directive now correctly but a couple of issues. First there is no way to set a placeholder since the markup is replaced with and second when the model contains a value at init, then an empty object is added to the options. (selectize.items[0] "? object:005 ?")
from angular-selectize.
Strange. I wonder if you were using the latest version. Also make sure to
use
from angular-selectize.
It seems there was something wrong with my jsfiddle setup for my previous comment (the one you have quoted) I have updated the comment to reflect the actual findings in a local test setup I ran.
Edit: placeholder seems to work great. I also tested required and disabled attributes and work fine on all occasions. Only problem left is the extra item generated when the value is prepopulated with items.
from angular-selectize.
I just found out I can specify placeholder in the Selectize config. I'm
going to remove support for setting it with placeholder attribute. Here's a
plnkr using your example and the latest version of the directive:
http://plnkr.co/edit/g5bDSP2ZKv0ItAw1Y75O?p=preview
On Sat, Jun 14, 2014 at 8:56 AM, Michael [email protected] wrote:
It seems there was something wrong with my jsfiddle setup for my previous
comment (the one you have quoted) I have updated the comment to reflect the
actual findings in a local test setup I ran.—
Reply to this email directly or view it on GitHub
#5 (comment)
.
from angular-selectize.
Try adding a value now to the example that I have added an initial value in the directive (line 20: scope.item.selectedIndustries2 = ['ADMIN'];) and notice the last entry (undefined) that illustrates the issue I am talking about above
http://plnkr.co/edit/2sD1bOniTyPOlqXOQypv?p=preview
this seems related https://stackoverflow.com/questions/19884679/angular-js-ng-options-returns-object005 (not the reason and solution, but the side effect)
from angular-selectize.
I'm not sure if it's my directive, Angular select, or Selectize, but if you
change your options from a hash to an array of objects, then it works.
On Sat, Jun 14, 2014 at 9:20 AM, Michael [email protected] wrote:
Try adding a value now to the example that I have added an initial value
in the directive (line 20: scope.item.selectedIndustries2 = ['ADMIN'];) and
notice the last entry (undefined) that illustrates the issue I am talking
about above
http://plnkr.co/edit/2sD1bOniTyPOlqXOQypv?p=preview—
Reply to this email directly or view it on GitHub
#5 (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.