混合 QooXDoo 和 jqgrid
我正在尝试混合 QooXDoo 和 jquery,jqGrid 但我只是 qxd 初学者(我昨天刚下载)。由于 jqGrid 比 qxd 的 Table 更强大、更有特色,我想使用它,而且当前的应用程序都是使用 jqgrid 构建的。 (使用了大约 75% 的所有功能)所以我不想在 qxd 中费心做它们。
无论如何,他们只是将 jqgrid 直接嵌入到 qxd 中吗?多谢。
I am trying to mix QooXDoo and jquery , jqGrid but i am just a qxd beginner ( i just downloaded yesterday) . as jqGrid is way more powerful , featureful than qxd's Table , i want to use it , plus current application is all build using jqgrid . (used about 75% of all its features) so i dont want to bother doing them in qxd.
Is they anyway , just to embed jqgrid directly into qxd? Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请查看 qooxdoo 邮件列表:
http://qooxdoo.678.n2.nabble.com /jqGrid-and-qooxdoo-td5808285.html#none
Please have a look at the qooxdoo mailing list:
http://qooxdoo.678.n2.nabble.com/jqGrid-and-qooxdoo-td5808285.html#none
您可以在 QX 类中使用常规 javascript。因此也应该可以使用其他 JS 库。
我建议你写一个包装器(库 甚至贡献 [至少你可以有一个看看 jqGrid 的集成是如何完成的])。之后您可以轻松地在 qooxdoo 中使用 jqGrid。
在 QX 中使用这个 jqGrid 也可能会产生问题:UI 不同并且需要定制,您需要维护库并且您的项目有更多的依赖性。也许您可以看看 QX 强大的表功能并避免使用冗余库。
You can use regular javascript within a QX class. Therefore it should be possible to use other JS libraries too.
I suggest you to write a wrapper (library or even a contribution [at lest you can have a look at this how the integration is done there]) for the jqGrid. After that you can easily use jqGrid within qooxdoo.
Using this jqGrid within QX may produce problems too: The UI is different and needs customization, you need to maintain the library and you have more dependences for your project. Perhaps you can have a look at the powerfull table-fetatues of QX and avoid using a redundant library.
我不是将其他 JS 库嵌入到 qooxdoo 应用程序方面的专家,但是有几次成功的尝试,所以这应该不会太难。例如,看一下qxJqPlot,它包装了jqPlot以在qooxdoo中使用。您可能想查看包装 jqPlot 的代码。如果这还不够接近您的用例,请查看其他贡献,我确信您会发现它使用 DOM 元素来嵌入库功能。
I'm not an expert in embedding other JS libs into qooxdoo apps, but there are several successfull attempts of doing so, so it shouldn't be too hard. E.g. have a look at qxJqPlot which wraps jqPlot for use in qooxdoo. You might want to look at the code that wraps jqPlot. If that is not close enough to your use case, have a look at the other contributions, I'm sure you'll find one that uses a DOM element to embed library functionality.