Skip to content

Commit 52fc8e3

Browse files
committed
Selectmenu: add option icons
1 parent 1afede8 commit 52fc8e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ $.widget( "ui.selectmenu", {
2727
at: "left bottom",
2828
collision: "none"
2929
},
30+
icons: {
31+
dropdown: "ui-icon-triangle-1-s",
32+
popup: "ui-icon-triangle-2-n-s"
33+
},
3034

3135
// callbacks
3236
change: null,
@@ -80,7 +84,7 @@ $.widget( "ui.selectmenu", {
8084
});
8185

8286
this.button.prepend( $( "<span>", {
83-
"class": "ui-icon " + ( ( this.options.dropdown ) ? "ui-icon-triangle-1-s" : "ui-icon-triangle-2-n-s" )
87+
"class": "ui-icon " + ( this.options.dropdown ? this.options.icons.dropdown : this.options.icons.popup )
8488
}));
8589

8690
this.buttonText = $( "<span>", {

0 commit comments

Comments
 (0)