Comments (12)
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.
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.
@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.
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.
... 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.
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.
@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.
I have opened an issue about the wrong position thing a few months ago. Fortunately, there's a workaround for it: #167
from popover.
@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.
@pgkehle, do you mean the update of the .spec
files?
from popover.
Or just trying the code of the PRs?
from popover.
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)
- Sat-popover for open() is not working on ng build. With angular version 11 HOT 1
- Not able to scroll through the popover which is longer than WebPage's Height HOT 1
- Anchor Service is shared if used in a extended custom component
- 'afterClose' event is fired right after 'opened' event
- hasBackdrop error: Typescript - Type 'string' is not assignable to type 'boolean' HOT 1
- Cannot find popover.component.html when running tests with jest HOT 1
- Clickable content inside popover and hover trigger HOT 3
- Support Angular v13 HOT 5
- Dynamically add/remove backdropClass
- Module has no exports @ Angular 13 HOT 8
- Show one popover and hide other popovers HOT 1
- TypeScript Error: interactiveClose() - different type for get and set HOT 1
- Popover doesn't fit in browser viewport
- Support Angular v14
- Feature: Use Different Class Names For Start and End Alignments
- Preventing Trap Focus
- Allow configuring the FlexibleConnectedPositionStrategy
- Angular 15 was released HOT 13
- Error with angular 15.2.9 HOT 3
- Add country to leads api and improve the docs
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 popover.