Well, overall the styling of the dashboard elements should be done with CSS, only minor modifications may or should be done via provided msg parameters. And that is the different approach I was talking before.
See the example of dropdown widget modification.
But for your use case I can't see the how it can go into the dropdown widgets behavior. It is user input type of widget, not a presentation type.