混合 QooXDoo 和 jqgrid

发布于 2024-10-06 09:00:47 字数 203 浏览 0 评论 0原文

我正在尝试混合 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

疑心病 2024-10-13 09:00:47

您可以在 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.

凉世弥音 2024-10-13 09:00:47

我不是将其他 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文