Comments (3)
@Hey @Newbie012, it has taken me a while to implement this feature, but it's done now 🙂
Better late, than never, right? 👍
Here is a demo:
https://stackblitz.com/edit/ionic-select-searchable-min-max-validation?file=pages%2Fhome%2Fhome.html
Also, there have been some breaking changes. Have look at these two releases for instructions to update:
from ionic-selectable.
Hey, okay, so what you want is:
- If the number of selected items isn’t in the min/max range then disable OK button.
- Add a hint at the top of Select page so user can understand how many items he should choose and why OK button is disabled.
- If only
min
parameter is set message should say “Select at least {min} item/s”. - If only
max
parameter is set message should say “Select {max} item/s maximum”. - If both
min
andmax
parameters are set message should say “Select between {min} to {max} items”.
Is that okay?
from ionic-selectable.
This is more than ok.
from ionic-selectable.
Related Issues (20)
- Throws error with empty array on v5
- ionicSelectableItemTemplate doesn't change all the file ionic v7 angular 16 HOT 1
- ionicSelectableItemTemplate in V2 HOT 2
- Module '"ionic-selectable"' has no exported member 'IonicSelectableModule'. HOT 4
- Can't resolve '@utils/keyboard/keyboard-controller'
- StructureClone method don't exists HOT 6
- Request For React HOT 1
- Unable to use ng-templates (ionic 7 / angular 16) HOT 6
- ionchange or (change) is not dedicated HOT 3
- itemTextField HOT 1
- search issue on ionic 7
- Clear search does not fire onSearch and does not clear the filter HOT 6
- ionic-selectable not working with ionic 7 HOT 6
- Cannot read properties of undefined (reading 'apply')
- ModalController NullInjectorError using Ionic 7 Standalone & v5.0.3 HOT 1
- ERROR IonicSelectable is disabled or already opened.
- Ionic7 ignores all ngTemplate from ionic-selectable 5.0.3 HOT 4
- VirtualScroll and VirtualScrollHeaderFn supported with ionic-selectable 5.x and Ionic 7? HOT 1
- Specify license as "MIT" in package.json
- Unable to translate `group.text` using group template
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 ionic-selectable.