I am new to the Mithril JS framework and I love its rendering performance. It being light-weight is a plus, but I would like to use jQuery UI so that I can benefit from some of its functionality such as the draggable interaction. From my understanding, both jQuery UI and Mithril manipulate DOM elements. If so, how practical is it to use jQuery UI with Mithril?
标签:
mithril.js
相关问题
- Using jQuery UI functions with Mithril
- Mithril.js: Should two child components talk to ea
- How do I show a spinner while waiting for an AJAX
- How does Mithril and jQuery interact with each oth
- How to detect model parameter change event in mith
相关文章
- Using jQuery UI functions with Mithril
- Mithril.js: Should two child components talk to ea
- How do I show a spinner while waiting for an AJAX
- How does Mithril and jQuery interact with each oth
- How to detect model parameter change event in mith
- How to convert a string into a HTML element in Mit
Your question is a bit open ended, but to give a useful answer: Mithril templates don't actually touch the DOM until you call either
m.render
,m.module
orm.route
. When you do, the diff engine creates or updates elements as needed to mirror the structure of the template. You can useconfig
in templates to get to real DOM elements, and run jQuery/jQuery UI on them: