mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: add option icons
This commit is contained in:
parent
1afede867d
commit
52fc8e3c70
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@ -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>", {
|
||||
|
Loading…
Reference in New Issue
Block a user