Comments (4)
Hi aylwong,
May I know what do you mean with a "selected filtered" button? What will the button do?
On Fri, Jun 27, 2014 at 9:56 AM, aylwong [email protected] wrote:
Hi,
Looking at the code, currently the buttons for selection are relatively
hard-coded. I want to insert a selected 'filtered' button, but it required
hard edits into 'case' statements, and so didn't lend itself to an add-on
js file.I added the button, but was wondering if the ease of adding / changing the
function / text of buttons will be easier in the new version you are
working on?—
Reply to this email directly or view it on GitHub
#35.
from angular-multi-select.
Sure, a button that toggles the selected values of only the filtered values.
So clicking it will either tick or untick all the filtered entries.
As to how it relates to my original question, I could conceivably want to add more buttons (a 'load more values' or something), or change the text for the buttons (localization). Being able to insert this stuff cleanly without changing the base code would be a boon for me.
from angular-multi-select.
Actually a new version is coming soon, and in that new version, the select all, none, and reset buttons will only affect the filtered results.
Other than that, the new version will have:
- on-item-click() callback
- unlimited nested grouping
- arrow key navigation instead of just shift / shift + tab
I'm not sure on how to add buttons into the directive dynamically. I mean... it's possible of course, but I don't know what's the best practice of doing it. Probably you can show me some samples?
As for the moment, localization support is on my lower priority, so you'll have to modify the code directly. Since I am still working on the new version, I also won't accept pull requests temporarily. I hope you understand :)
from angular-multi-select.
Cool, no problem.
I'll wait for the updated version. As for best practices, I'm not sure either, but after the update I'll see about whether a good go at it can't be made.
from angular-multi-select.
Related Issues (20)
- How to add tooltip for each dropdown element? HOT 9
- how to add default text when data is not bound to multiselect? HOT 1
- Reset doesn't set all values' 'ticked' property to false HOT 2
- output-model needn't be a compulsory attribute HOT 4
- Is there any angular 4 version of this available ? HOT 2
- Use same input-model to multiple multiselectors? HOT 4
- Select items from single group only
- XSS attack by option name
- Mutli select not support direction
- how to select all items loaded on the control??
- How to prevent .length == 'undefined' error when populating dropdown via on-open
- Filtering problem when grouped
- Grouping
- Issue injecting multi-select directive into another directive with same scope
- make filter clear button 'x' icon encoded
- Possible to launch dropdown from custom button?
- will it be possible to give remove option to the selected items in the ui HOT 1
- Search not working when grouping is enabled.
- Any ways to dynamically update helper-elements?
- Multiple elements selected when only one is clicked 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-multi-select.