Question T9597
Visible to All Users

Event onAffterRenderPage not working in Angular/Vue/Ko version

created 3 years ago

Hello,

I am listening for event every time the page is created as per below code but i am not getting any response.
Is this a bug?

Clipboard-File-1.png

Comments (3)

    Hello,

    Could you describe in greater details - what do you want to achieve? Probably we could recommend you another solution.

    Thanks, Serge
    SurveyJS Team

      Hello,

      I want get htmlElement(DOM) of page when property page was changed.
      But i look for the api you are providing, there is no api that supports it
      So i had an idea to use the onAfterRenderPage event to save the htmlElement of the page when it finished rendering

      The above example I use to check if the above event is present or dynamic.
      Do you understand the problem i am facing?

        Hello,
        You have to use creator.onSurveyInstanceCreated event to set events to the survey.
        Here is the example.

        Thank you,
        Andrew
        SurveyJS Team