使数据网格的行在GWT中拖动 [英] Make the rows of the datagrid draggable in GWT

查看:144
本文介绍了使数据网格的行在GWT中拖动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个数据网格,其中行可以拖动,以便人们可以通过拖动行来上下移动行。因为datagrid的行将被作为一个元素。我知道如何使小部件可拖动,但是如何使datagrid的行可以拖动?
我不想使用任何额外的插件或库来实现这一点。

I want to make a datagrid in which rows will be draggable so that a person can move rows up and down by dragging the rows. As row of the datagrid will be get as an element. I know how to make the widgets draggable, but how the rows of the datagrid can be made draggable? I don't want to use any extra plugin or library for achieving this.

推荐答案

我知道的唯一的图书馆该支持拖放与(在)单元格小部件是 GwtQuery droppable 插件,请参阅他们的 showcase 。我建议您尝试改造轮胎(或从他们的代码库获取灵感)。请参阅主题关于您的 CellTable 用例。

The only library I know of that support drag&drop with(in) cell widgets is GwtQuery with droppable plugin, see their showcase. I suggest your to give it a try instead reinventing the wheel (or take inspiration from their codebase). See this thread about your CellTable use case.

这篇关于使数据网格的行在GWT中拖动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆