From e054e28836e616ed03561d5a8195bbea525866d1 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 12 Jul 2012 17:59:43 +0200 Subject: Spinner: Introduce icons option to make button icons customizable, mostly for consistency --- ui/jquery.ui.spinner.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 6acb3693e..ead3b17be 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -32,6 +32,10 @@ $.widget( "ui.spinner", { widgetEventPrefix: "spin", options: { culture: null, + icons: { + down: "ui-icon-triangle-1-s", + up: "ui-icon-triangle-1-n" + }, incremental: true, max: null, min: null, @@ -244,10 +248,10 @@ $.widget( "ui.spinner", { _buttonHtml: function() { return "" + "" + - "" + + "" + "" + "" + - "" + + "" + ""; }, -- cgit v1.2.3