Replies: 7 comments
-
@baleeds Note you can simplify all this by using igxToggle directive. igxToggle directive allows easily toggle some content and it internally uses Overlay cannot show |
Beta Was this translation helpful? Give feedback.
-
@wnvko Thanks for the swift reply! I believe a previous dev spent a lot of time trying to get igxToggle to work for our usecase and was unsuccessful. I could try again if this path doesn't work. We do understand the two overloads, but we don't understand how to use an elementRef without the content of the overlay showing before being attached? In order to get an elementRef, there is an element in the view. If the element is in the view, it's being displayed, regardless of whether it's attached or not. That's why I was asking for examples, to see how you would expect us to use the elementRef attach function in a "normal" seeming way.
This would be a very nice feature! |
Beta Was this translation helpful? Give feedback.
-
To add, if we do something with |
Beta Was this translation helpful? Give feedback.
-
@baleeds Regarding template here is a workaround how you can show it in the overlay:
Finally about the feature - can you please rename your issue to something requesting |
Beta Was this translation helpful? Give feedback.
-
I will adjust the issue name to reflect the feature request. |
Beta Was this translation helpful? Give feedback.
-
There has been no recent activity and this issue has been marked inactive. |
Beta Was this translation helpful? Give feedback.
-
There has been no recent activity and this issue has been marked inactive. |
Beta Was this translation helpful? Give feedback.
-
I'm looking for an example of an IgxOverlay that isn't attaching a new class component, but is instead attaching an element in the view of the same component that calls attach (ideally a template ref, not element ref). It seems there is no good way to accomplish this, and there certainly are no viable examples in the documentation.
We have managed to achieve the desired result by using
[hidden]
when the overlay isn't shown, but this breaks the auto-positioning strategy because at the time of calculation, the element to be attached is still hidden.Also, the minimum size in the overlay settings doesn't fix this issue. Perhaps there are problems with that setting.
Beta Was this translation helpful? Give feedback.
All reactions