aikau MultiSelectInput 是否支持多个值?
Does aikau MultiSelectInput support more then one value?
考虑小部件配置:
{
id: "MyMultiSelect",
name: "alfresco/forms/controls/MultiSelectInput",
config: {
label: "My multi-select input",
name: "assoc_myGood",
width: "400px",
addedAndRemovedValues: true,
valueDelimiter: ",",
choiceCanWrap: true,
choiceMaxWidth: "100%",
optionsConfig: {
labelAttribute: "name",
queryAttribute: "name",
valueAttribute: "value",
publishTopic: "ALF_CRUD_GET_ALL",
publishPayload: {
url: "/slingshot/datalists/lists/node/workspace/SpacesStore/dc1b9c22-b955-4e5f-9b10-2343680a15f5",
resultsProperty: "response.datalists"
},
searchStartsWith: true
}
}
}
值被检索,但当涉及到 select 时,可能 select 一个值,但之后所有其他值都被禁用。例如。只能 selected.
一个值
那么 MultiSelectInput
支持 select 多于 1 个值吗?
是的,MultiSelectInput does support the selection of more than one value. See this live example 在艾考沙坑。我建议问题是您的 optionsConfig
不正确。根据你的另一个问题,我会说每个选项都被分配了相同的值,这就是为什么只能选择一个选项的原因。
考虑小部件配置:
{
id: "MyMultiSelect",
name: "alfresco/forms/controls/MultiSelectInput",
config: {
label: "My multi-select input",
name: "assoc_myGood",
width: "400px",
addedAndRemovedValues: true,
valueDelimiter: ",",
choiceCanWrap: true,
choiceMaxWidth: "100%",
optionsConfig: {
labelAttribute: "name",
queryAttribute: "name",
valueAttribute: "value",
publishTopic: "ALF_CRUD_GET_ALL",
publishPayload: {
url: "/slingshot/datalists/lists/node/workspace/SpacesStore/dc1b9c22-b955-4e5f-9b10-2343680a15f5",
resultsProperty: "response.datalists"
},
searchStartsWith: true
}
}
}
值被检索,但当涉及到 select 时,可能 select 一个值,但之后所有其他值都被禁用。例如。只能 selected.
一个值那么 MultiSelectInput
支持 select 多于 1 个值吗?
是的,MultiSelectInput does support the selection of more than one value. See this live example 在艾考沙坑。我建议问题是您的 optionsConfig
不正确。根据你的另一个问题,我会说每个选项都被分配了相同的值,这就是为什么只能选择一个选项的原因。