最大道场组合框人物
dojo combobox max. characters
我使用 dojo 创建了一个 ComboBox,如下所示。如何设置最大值ComboBox 中允许的最大字符数。已达到用户无法再输入?
var comboBox = new ComboBox({
id: "Person",
name: "Person",
store: personStore,
constraints: { maxlength: 40 },
searchAttr: "name"
});
你只需要在 root 上添加约束。
var comboBox1 = new ComboBox({
store: restStore,
searchAttr: "Name",
autocomplete: true,
placeholder: "Select your favorite song.",
maxlength:'5'
}, "comboBox1Placeholder");
我使用 dojo 创建了一个 ComboBox,如下所示。如何设置最大值ComboBox 中允许的最大字符数。已达到用户无法再输入?
var comboBox = new ComboBox({
id: "Person",
name: "Person",
store: personStore,
constraints: { maxlength: 40 },
searchAttr: "name"
});
你只需要在 root 上添加约束。
var comboBox1 = new ComboBox({
store: restStore,
searchAttr: "Name",
autocomplete: true,
placeholder: "Select your favorite song.",
maxlength:'5'
}, "comboBox1Placeholder");