考虑小部件配置:
{
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
}
}
}
重新获取值,但是在选择时,可以选择一个值,但之后所有其他值都将被禁用。例如。只能选择一个值。
MultiSelectInput
支持选择多于1个值吗?
答案 0 :(得分:1)
是的,MultiSelectInput确实支持选择多个值。在Aikau Sandpit上查看此live example。我建议问题是您的uniform vec2 texelSize; // (1.0/windowResolution.x, 1.0/windowResolution.y)
vec2 uv = gl_FragCoord.xy * texelSize;
vec4 backgroundColor = texture2D(u_backgroundTexture, uv);
不正确。根据您的其他问题,我会说每个选项都被赋予相同的值,这就是为什么只能选择一个选项的原因。