Giter Club home page Giter Club logo

Comments (6)

charandas avatar charandas commented on May 11, 2024

I suppose ng-hide would make it useful, as we can signal that the select be shown when the http request actually fires, but angular-chosen doesn't honor ngHide.

from angular-chosen.

jr314159 avatar jr314159 commented on May 11, 2024

Yeah you've got the idea. I'd use ng-if so it doesn't even get rendered until you're ready to fire off the query. A select with no options in it isn't very useful, so I'd probably show something else, or nothing. Alternatively you can set your collection to an empty array, in which case you'll get the "no values available" message in the chosen, and you can set it to undefined once you fire the query off and populate it once the query returns.

from angular-chosen.

AlJohri avatar AlJohri commented on May 11, 2024

@kbdaitch sorry to bring up an old issue but why doesn't it honor ng-hide?

from angular-chosen.

charandas avatar charandas commented on May 11, 2024

Don't know about ng-hide, ng-if worked for me:link

from angular-chosen.

AlJohri avatar AlJohri commented on May 11, 2024

@kbdaitch thanks, I got it working by just putting ng-hide on a parent element

from angular-chosen.

javiplav avatar javiplav commented on May 11, 2024

Similar problem with applying ng-hide to Chosen select. Workaround: had to add a span element and apply ng-hide to it. Working now.

from angular-chosen.

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.