Dojo:FilteringSelect,必需:“false”,不工作
我的代码结构是,
var user_search = new FilteringSelect({
id: "user_search",
name: "user_search",
searchAttr: "displayName",
type: "text",
required: "false",
autoComplete: true,
labelFunc: formatLabel,
labelType: "html",
invalidMessage: "No user found",
style: "width: 166px;height:28px;background-color:white"
}, this.user_search);
任何人都可以提供帮助吗?。
谢谢!
答案 0 :(得分:3)
required
属性应该是布尔false
,而不是字符串"false"
吗?
...
type: "text",
required: false,
autoComplete: true,
....