Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Is it possible to get a reference to the underlying Stencil Web Component?

$
0
0

In my use case I need to find a way to be notified when a component has fully rendered so that I can get its size.

I came across this discussion in an issue thread: https://github.com/ionic-team/ionic-framework/issues/17920

It mentions that one should be able to use ViewChild to get a reference to the element and then call web component API methods. I am interested in componentOnReady() mentioned in the thread.

However, using ViewChild I am not seeing any methods resembling what’s mentioned in the stencil docs.

For example, if I wanted to get a reference to the underlying web component behind IonContent so I could call, for example, componentDidRender() or some such, how would I go about doing that?

Any help would be greatly appreciated.

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>