Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can a single anchor have multiple satPopovers #209

Open
moda20 opened this issue Mar 21, 2021 · 0 comments
Open

can a single anchor have multiple satPopovers #209

moda20 opened this issue Mar 21, 2021 · 0 comments

Comments

@moda20
Copy link

moda20 commented Mar 21, 2021

I am trying to have multiple satPopovers per anchor. i am achieving this by *ngFor on the satPopovers.

<div style="height: 300px; width:300px; border: red 1px solid" satPopoverAnchor #anchor="satPopoverAnchor" (click)="anchor.popover.open()">

                            </div>
                            <sat-popover *ngFor="let card of cards; let i = index;" [anchor]="anchor" id="popover" hasBackdrop horizontalAlign="{{getPositoinByIndex(i)[0]}}" verticalAlign="{{getPositoinByIndex(i)[1]}}">
                                {{ card.title }}
                            </sat-popover>

the getPositoinByIndex method is just for randomizing positions so that the popovers would be visible.

clicking on the anchor div would only result in the first popover showing up but not the others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant