valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

feat(popover): add functionality of displaying/attaching popover without using the directive #1983

Open pgeyman opened 7 years ago

pgeyman commented 7 years ago

Is it possible to display/attach a popover to an element without using the directive?

I have occasions where I end up having to use non-angular 2 components (like fullcalendar) and I have an element I want to have a popup from, but am not able to add the angular 2 directives as I don't have an angular template. I would rather not have to add and use some jquery popover component.

valorkin commented 7 years ago

@pgeyman how you will pass a selector? we are finishing to work on modals service, and it is very similar to what popover service could look like

pgeyman commented 7 years ago

@valorkin Assuming it is what you mean by a selector, I would be passing a DOM element or elementRef.

sapariyaravi commented 6 years ago

have anyone found the solution for how to pass DOM element or ElementRef to dynamically created popover without using directive. Because I am using the d3 chart and all the elements of d3 created dynamically.