Permalink
Browse files

Selectmenu: add option icons

  • Loading branch information...
fnagel committed Dec 18, 2012
1 parent 1afede8 commit 52fc8e3c709f4be1866f888838323a1bb80e1d6e
Showing with 5 additions and 1 deletion.
  1. +5 −1 ui/jquery.ui.selectmenu.js
@@ -27,6 +27,10 @@ $.widget( "ui.selectmenu", {
at: "left bottom",
collision: "none"
},
+ icons: {
+ dropdown: "ui-icon-triangle-1-s",
+ popup: "ui-icon-triangle-2-n-s"
+ },
// callbacks
change: null,
@@ -80,7 +84,7 @@ $.widget( "ui.selectmenu", {
});
this.button.prepend( $( "<span>", {
- "class": "ui-icon " + ( ( this.options.dropdown ) ? "ui-icon-triangle-1-s" : "ui-icon-triangle-2-n-s" )
+ "class": "ui-icon " + ( this.options.dropdown ? this.options.icons.dropdown : this.options.icons.popup )
}));
this.buttonText = $( "<span>", {

0 comments on commit 52fc8e3

Please sign in to comment.