improve docs
This commit is contained in:
parent
81fc994954
commit
8c3467b819
10 changed files with 171 additions and 9 deletions
|
|
@ -1,8 +1,8 @@
|
|||
## Integrating with Other Libraries
|
||||
|
||||
Integration with third party libraries can be achieved via the `config` attribute of virtual elements.
|
||||
Integration with third party libraries or vanilla javascript code can be achieved via the [`config` attribute of virtual elements](mithril.md#accessing-the-real-dom).
|
||||
|
||||
It's recommended that you encapsulate integration code in a component.
|
||||
It's recommended that you encapsulate integration code in a component or a helper function.
|
||||
|
||||
The example below shows a simple component that integrates with the [select2 library](http://ivaynberg.github.io/select2/).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue