我已更改DojoSelect
为ComboBox
in this example。所以下拉代码变成这样:
{
name: "alfresco/forms/controls/ComboBox",
config: {
label: "List Type",
name: "prop_dl_dataListItemType",
value: "",
firstValueIsDefault: false,
showAllOptionsOnOpen: true,
optionsConfig: {
queryAttribute: "label",
labelAttribute: "label",
valueAttribute: "value",
publishTopic: "ALF_GET_FORM_CONTROL_OPTIONS",
publishPayload: {
resultsProperty: "options",
url: url.context + "/proxy/alfresco/api/classes/dl_dataListItem/subclasses",
itemsAttribute: "",
labelAttribute: "title",
valueAttribute: "name"
}
}
}
}
一切都适用于 aikau 版本1.0.99
(这很重要)。但ComboBox
仅在单击直角三角形时才显示其内容。例如,当用户单击输入字段时,没有任何反应。
alfresco/forms/controls/ComboBox
执行单击字符串输入时,有没有办法制作显示选项?