Is it possible to use ag-grid with vue without a builder?

百般思念 提交于 2019-12-31 04:25:47

问题


In particular, can the typescript source of the ag-grid-vue component be compiled then included in a regular html file?


回答1:


I figured it out:

Download the ag-grid source code, go into the packages/ag-grid-vue directory and do npm install and npm run build. That will put compiled javascript modules in the dist directory that can be used without a build system.

I did have to modify the built javascript slightly to get the AgGridVue object into the global namespace, since I'm not using a module loader.

EDIT: To get the AgGridVue into the global namespace, add window.AgGridVue = AgGridVue; to the end of the function that returns AgGridVue in ag-grid-vue.umd.js



来源:https://stackoverflow.com/questions/56334844/is-it-possible-to-use-ag-grid-with-vue-without-a-builder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!