GithubHelp home page GithubHelp logo

delay compilation about nspopover HOT 10 OPEN

nohros avatar nohros commented on July 17, 2024
delay compilation

from nspopover.

Comments (10)

gaffney avatar gaffney commented on July 17, 2024

+1 to this as well; there should be a lazy-load option.

Require functionality that would allow for a flow similar to below:

  • [Enter :: Loading] (mouseenter): IF not already loaded, load data into template through directive function; display "loading" template (SVG)... state changed from "none" to "loading".
  • [Enter :: Loaded] (mouseenter): Display popover with data from above (mouseover should now encompass this popover)... state changes from "loading" to "loaded".
  • [Exit] (mouseleave for X seconds): Hide pop-over... state changed from "loaded" to "none"

from nspopover.

masimplo avatar masimplo commented on July 17, 2024

+1 for this

from nspopover.

noordawod avatar noordawod commented on July 17, 2024

Thanks gentlemen for the input, I also +1 for this option.
I'm in need for this myself, but maybe any of you have already done that and could submit a pull request? If not, then I'll do it myself in the coming days I guess.

from nspopover.

fabiomartins87 avatar fabiomartins87 commented on July 17, 2024

+1 for this. I have a 1000 elements on a grid. Each one of them needs a popover, which means 1000 hidden divs. Would be great to improve this.

from nspopover.

viruletdew avatar viruletdew commented on July 17, 2024

+1 for this

from nspopover.

aralroca avatar aralroca commented on July 17, 2024

+1 for this!!!

from nspopover.

rgullhaug avatar rgullhaug commented on July 17, 2024

Any news? Will we ever see this lazy loading feature?

from nspopover.

nohros avatar nohros commented on July 17, 2024

I'm not working on this feature, does anyone wants to contribute?

@noordawod, @gaffney

from nspopover.

gaffney avatar gaffney commented on July 17, 2024

Too lazy for that, but I won't be completely worthless -- here is a workaround :)

<span ng-if="hasOpened" ns-popover (...)>
  <ng-transclude></ng-transclude>\
</span>\
<span ng-if="!hasOpened" ng-mouseenter="onFirstOpen()" ng-transclude></span>
scope.onFirstOpen = -> scope.hasOpened = true

from nspopover.

rgullhaug avatar rgullhaug commented on July 17, 2024

Thank you, I will try something like that.

from nspopover.

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.