I am looking to enhance the functionality of a toggle button within a web application that was developed using the JS Dojo API. Currently, the button is utilizing dijit.form.ToggleButton, but I need it to include an additional feature for a dropdown menu with checkboxes. I have considered using dijit.form.ComboButton as a possible solution, however, it does not behave like a toggle button and instead functions like a regular button. What would be the most effective approach to address this issue?
One idea I had was to manually adjust the styling of the combobutton to give the appearance that it is checked, but I am uncertain how to achieve this.
Any assistance on this matter would be greatly appreciated.