Sometime, we use js lib and we need init it at app start, how to implement?
How to init js lib at app start
Collapse
X
-
It depends on what module format the lib is available. The most simple way is just include the file:
If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks. -
If you configured it correctly in jsLibs, you require it it the script.
PHP Code:require('your-lib-name', MyLib => { });
If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.Comment
Comment