I am using dijit.form.dropDownbutton in my application. However, I want to remove the down arrow icon in the drop down button. Is there a way to do so?
I am using dijit.form.dropDownbutton in my application. However, I want to remove the down
Share
First, don’t do it. It’s there because of the various usability conventions – something users come to expect. It points them to a familiar functionality, where a down arrow icon indicates a dropdown box.
Secondly, if you choose to ignore the first advice you can go ahead and do it. The button is controlled by (in case of claro theme):
overriding it and adding:
display: none;removes the arrow and re-sizes the button. You can override it by, for example, assigning an additional classyourclassto thedivand building a paraller CSS hierarchy:so that in your
<head>part you have:and then:
If there is a programmatic way that is simpler than that – I am not aware of it.
EDIT
also, as a friendly advice, you should really try and accept answers for your questions, otherwise at some point no one will answer you.