允许使用数组的动态拖放权限
我在 gwt-ext 中创建了两棵树,一棵包含可拖动的节点的值,另一棵包含可放置的节点。问题是我无法仅设置数组中提到的一组特定叶子,从一棵树拖动到另一棵树上,而无法拖动不在数组中的叶子。我已经在树上启用了拖放,然后手动允许叶子禁用拖动,但它不起作用。尝试使用 setallowdrag() 方法并使用 setTreeAttribute("allowDrag",false) 但不知道为什么它不起作用。请帮忙。
TreeNode n22=treePanel.getNodeById("ynode-121");
n22.setTreeAttribute("allowDrag","false");
n22.setAllowDrag(false);
I have created two trees in gwt-ext one contains the values of nodes that can be dragged and other the nodes which can be dropped on. The problem being i am not able to set only a particular set of leaves mentioned in the array, from a tree to be dragged on other tree while the leaves which are not in the array cannot be dragged. I have enabled drag drop on the tree and then manually allow a leaf to disable drag but its not working. Tried it using the setallowdrag() method and also using setTreeAttribute("allowDrag",false) but don't know why it just doesn't work. Please help.
TreeNode n22=treePanel.getNodeById("ynode-121");
n22.setTreeAttribute("allowDrag","false");
n22.setAllowDrag(false);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论