Git Product home page Git Product logo

Comments (4)

isteven avatar isteven commented on July 21, 2024

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.

aylwong avatar aylwong commented on July 21, 2024

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.

isteven avatar isteven commented on July 21, 2024

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.

aylwong avatar aylwong commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.