how to design notebook with vanjs and code question #364
kangaroolab
started this conversation in
General
Replies: 2 comments 1 reply
-
You're not able to serialize event handlers into HTML strings. These are JavaScript functions bound to the DOM nodes. I think your current way of handling it is the best way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks...you have some code example or best practice for this as reference? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
below is my attempt of notebook with vanjs, where it adds codetextarea, run button and output to div. it works as expected. when I include function to save content (innerHTML) from codetextarea into local file and load it back, it doesn't have associated functions for oninput and onclick. so I have to recreate notebook instance and replace existing one with it.
wondering if any recommendation to better handle such with vanjs. thank!
//code for notebook
// code to replace loaded innerHTML
Beta Was this translation helpful? Give feedback.
All reactions