Comments (7)
Perhaps with a custom validator.
from angular-selectize.
i mean using this directive its self...theres a max so shouldnt there be a min it would make things alot easier especially if i am using this for a single select and i want it to be required.
from angular-selectize.
You should add the required
attribute to your selectize
component, and manage it like any required field in your form.
Somehow, it is not something that can be managed at the component level, it is about the state of the form itself.
from angular-selectize.
That's true. But what if I have a mutli select and want to them to select
at least 3 options
On Apr 29, 2015 8:21 AM, "Philippe Lhoste" [email protected] wrote:
You should add the required attribute to your selectize component, and
manage it like any required field in your form.
Somehow, it is not something that can be managed at the component level,
it is about the state of the form itself.—
Reply to this email directly or view it on GitHub
#50 (comment)
.
from angular-selectize.
Back to custom validator... Again, nothing prevents the user to select two options, fill other fields of the form, then go back to the combo to add another option.
It is the responsibility of the form to ensure it is valid, and prevent submitting. The best the component can do is to report it isn't valid according to your validator rules. Which can be more complex (eg. select at least two items above a given price, whatever).
from angular-selectize.
ok then you can close this issue. i was just trying to help this get as
close to the jquery version of selectize as possible.
On Wed, Apr 29, 2015 at 9:07 AM, Philippe Lhoste [email protected]
wrote:
Back to custom validator... Again, nothing prevents the user to select two
options, fill other fields of the form, then go back to the combo to add
another option.
It is the responsibility of the form to ensure it is valid, and prevent
submitting. The best the component can do is to report it isn't valid
according to your validator rules. Which can be more complex (eg. select at
least two items above a given price, whatever).—
Reply to this email directly or view it on GitHub
#50 (comment)
.
from angular-selectize.
Note: I am just a simple user like you, trying to help others, and the project owner by answering to issues. So I can't close the issue.
I think you can close it yourself: I think the project owner is busy elsewhere and currently can't answer to requests.
Note: what do you mean by "get as close to the jquery version of selectize as possible"? I don't think that Selectize can do what you ask for, no?
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.