-
Notifications
You must be signed in to change notification settings - Fork 785
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
Add onAfterRender* events to Survey model. #219
Comments
Implemented. An exampled needed. |
I'm very excited about this! Here is an example of how I'm using it:
|
@ryancwalsh You may want to use options.htmlElement. It is the htmlElement for this question. In this case you may modify the DOM of this element and its children. Thank you, |
@andrewtelnov Cool, thanks! Here is what I'm using now:
It seems like the That's how I got it to behave how I wanted. Thanks. |
@ryancwalsh Cool! Thank you, |
The better way is to use the custom widget feature with isDefaultRender set to true. |
There are tasks that require to modify generated DOM elements after rendering.
Three new events: onAfterRenderSurvey, onAfterRenderPage and onAfterRenderQuestion are needed.
The options will contains two parameters: survey or page or question objects and htmlElement - a DOM element that associates with the model object.
The text was updated successfully, but these errors were encountered: