diff options
author | Felix Nagel <info@felixnagel.com> | 2012-12-18 19:55:04 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-12-18 19:55:04 +0100 |
commit | 52fc8e3c709f4be1866f888838323a1bb80e1d6e (patch) | |
tree | b94a9338d41d0aaa90733469c13c91660200975e /ui | |
parent | 1afede867db5bf2591d197d2a2a28ab22db73620 (diff) | |
download | jquery-ui-52fc8e3c709f4be1866f888838323a1bb80e1d6e.tar.gz jquery-ui-52fc8e3c709f4be1866f888838323a1bb80e1d6e.zip |
Selectmenu: add option icons
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 1ba12bab6..aa2e7ab12 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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>", { |