-
-
Notifications
You must be signed in to change notification settings - Fork 575
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
renderHandler option that will allow to echo different types of data in one place #526
Comments
Maybe |
POC for react inside terminal, with old API, it don't clear on resize. |
New API will just allow to echo DOM nodes or jQuery objects. Render handler also can return DOM nodes. |
Here is CodePen demo that shows, how to echo JSX object directly |
add onClear and unmount methods to echo add this context to finalize pass options to render method so echo with with DOM nodes and jQuery object Update TypeScript definition
I have idea for a new feature for jQuery Terminal
Global
echoHandler
orrenderHandler
:this will render
[Object object]
I'm thinking about:
and this can render any object that is passed to echo, as with this Demo: https://codepen.io/jcubic/pen/yLBjJRp?editors=0110
this will be really powerfull because you will be able to render for instance JSX code after transpilation, Maybe this can be simplified to have render method that will allow to use syntax like this:
and render will just do:
TODO:
The text was updated successfully, but these errors were encountered: