MultiSelectCombobox issue in dojo

后端 未结 4 2115
失恋的感觉
失恋的感觉 2021-01-07 04:07

I needed the combobox with checkboxes in front of each option, to select multiple options. I tried using CheckedMultiSelect using \"dropdown:true\",

It shows the val

4条回答
  •  渐次进展
    2021-01-07 04:56

    The CheckedMultiSelect does not provide checkboxes when the dropDown is set to true. It simply allows the user to click to click multiple items to select.

    To implement what you want, take a look at my answer here:

    Custom dojo Dropdown widget by inheriting _HasDropdown and _AutoCompleterMixin

    In MyCustomDropDown, you will need to build the list of checkboxes and items as a custom widget. I would recommend looking at dojox.form._CheckedMultiSelectMenu and dojox.form._CheckedMultiSelectMenuItem and mimic the functionality there and just give a different ui (with checkboxes).

提交回复
热议问题