GithubHelp home page GithubHelp logo

Comments (12)

julianobrasil avatar julianobrasil commented on May 22, 2024 2

I'll take a look at them and give it a try. I'll come back to you in case of trouble with the overall process.

from popover.

willshowell avatar willshowell commented on May 22, 2024

Ah yep, this is not intentional - thanks for the report! I'm afraid it'll have to bump a major release since it seems like a bug folks could accidentally be relying on.

FWIW, if your "content component" is specific enough, you could inject the SatPopover and subscribe to the first opened event before making your ajax request. A workaround still, but potentially more encapsulated.

from popover.

willshowell avatar willshowell commented on May 22, 2024

@rosslavery I take that back haha. The popover doesn't exist in the DOM until opened, but is instantiate and lives in memory once declared. That's consistent with what I was getting at in #23 (comment).

https://stackblitz.com/edit/sat-popover-issues-qfddyj

Regardless, I agree there should be a lazy way to instantiate it. I'll look into it as time permits!

from popover.

rosslavery avatar rosslavery commented on May 22, 2024

Great thanks. I think material2 just added lazy instantiation for mat-tabs as well as for mat-menu, might wanna take a look at their implementation for inspiration.

from popover.

tarekbazine avatar tarekbazine commented on May 22, 2024

... 2 years later. @rosslavery @willshowell any update about this,
I am using the popover in a dynamic built table in which I have all the cells as inline editable, in which I use the popover to show the appropriate form/picker, the problem is that all the popover are loaded ( rows nb * cells nb !!) which makes the table consuming too much resource memory/cpu.

thanks

from popover.

julianobrasil avatar julianobrasil commented on May 22, 2024

If you allow the edition of only one cell at a time, you could use just one popover for all the cells and one anchor per cell.

from popover.

tarekbazine avatar tarekbazine commented on May 22, 2024

@julianobrasil I tried sharing one popover and then passing the anchor to the cell but the popover was showing but displaying positions was not right, I end up hacking it as suggested in top with *ngIf popover.isOpen() .

from popover.

julianobrasil avatar julianobrasil commented on May 22, 2024

I have opened an issue about the wrong position thing a few months ago. Fortunately, there's a workaround for it: #167

from popover.

isaackehle avatar isaackehle commented on May 22, 2024

@julianobrasil There are a number of open issues here and in PRs. I'd be glad to get them resolved if folks can help with the testing.

from popover.

julianobrasil avatar julianobrasil commented on May 22, 2024

@pgkehle, do you mean the update of the .spec files?

from popover.

julianobrasil avatar julianobrasil commented on May 22, 2024

Or just trying the code of the PRs?

from popover.

isaackehle avatar isaackehle commented on May 22, 2024

No, I mean I tried building locally from scratch some of the different PRs, some things not working. The workaround you mentioned talked about some of the code being merged w/o proper tests, so it seems there's an opportunity to add another PR to fix a couple of these issues. Looking for some help with that.

from popover.

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.