我使用填充整个窗口示例作为默认值.试图调整浏览器窗口的大小:但用于网格的区域是相同的.需要重新加载页面以使其适合.如何在不重新加载页面的情况下存档?
编辑
有趣的事实,当我改变列的网格顺序时,调整大小.
我有jsTree和一个按钮。jsTree具有select_node函数
.bind("select_node.jstree", function (event, data) {
// some code
})
Run Code Online (Sandbox Code Playgroud)
单击按钮是否可以触发select_node事件?
我试图在Vaadin中扩展树组件.所以我创建了客户端类:
import com.vaadin.terminal.gwt.client.ui.VTree;
public class CustomVtree extends VTree {
}
Run Code Online (Sandbox Code Playgroud)
服务器端类:
import com.vaadin.ui.ClientWidget;
import com.vaadin.ui.Tree;
@ClientWidget(CustomVtree.class)
public class MyTree extends Tree {
public MyTree() {
super();
}
}
Run Code Online (Sandbox Code Playgroud)
我得到了
[WARN] Widget class com.vaadin.sample.gwt.client.ui.CustomVtree was not found. The component com.vaadin.sample.gwt.client.ui.MyTree will not be included in the widgetset.
什么,我忘了做什么或我做错了什么?很高兴得到任何帮助.谢谢
有一个带列验证的简单示例:
function requiredFieldValidator(value) {
if (value == null || value == undefined || !value.length) {
return {valid: false, msg: "This is a required field"};
} else {
return {valid: true, msg: null};
}
}
Run Code Online (Sandbox Code Playgroud)
并且要验证列,只需要放置此选项: validator: requiredFieldValidator
但是如果我需要传递额外的参数 - 正则表达式字符串,我怎么能使用正则表达式函数.
在示例中,当您在最后一行的一个单元格中键入内容时,会添加一个新行.只有在此新行中的所有单元格validator对列规则有效后,才能添加新行?