From 02033262ee0fb1d9f33c361b3c2ddfa168604854 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 22 Jan 2014 12:02:32 -0500 Subject: Button: Initial commit of button re-factor Move to using element stats rather then js class states remove ui-button-text spans. Removed button set --- demos/button/default.html | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'demos/button/default.html') diff --git a/demos/button/default.html b/demos/button/default.html index 88c666e9a..5418fd8c9 100644 --- a/demos/button/default.html +++ b/demos/button/default.html @@ -11,25 +11,33 @@ +
+

Widget Buttons

+ - + - + An anchor +
+

CSS Buttons

+ + + -An anchor +An anchor

Examples of the markup that can be used for buttons: A button element, an input of type submit and an anchor.

+

Buttons can be styled via the button widget or by adding the classes yourself. This avoids the JavaScript overhead if you don't need any of the methods provided by the button widget.

-- cgit v1.2.3 From 16abde399daa07e11f3b972ab675d59374cf08be Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 7 Jan 2015 21:51:38 -0500 Subject: Spinner: Updates for new button widget and classes option --- demos/button/default.html | 9 +- demos/button/icons.html | 10 +- demos/button/splitbutton.html | 70 -------- demos/button/toolbar.html | 115 ------------ demos/checkboxradio/default.html | 9 +- demos/checkboxradio/no-icons.html | 9 +- demos/checkboxradio/product-selector.html | 10 +- demos/checkboxradio/radiogroup.html | 10 +- tests/unit/button/common-deprecated.js | 2 +- tests/unit/button/core.js | 1 + tests/unit/button/deprecated.js | 2 +- tests/unit/checkboxradio/common.js | 2 +- tests/unit/checkboxradio/core.js | 2 +- tests/unit/checkboxradio/events.js | 72 +------- tests/unit/checkboxradio/methods.js | 2 +- tests/unit/checkboxradio/options.js | 2 +- ui/checkboxradio.js | 289 ------------------------------ ui/widgets/button.js | 3 +- ui/widgets/checkboxradio.js | 265 +++++++++++++++++++++++++++ ui/widgets/spinner.js | 12 +- 20 files changed, 293 insertions(+), 603 deletions(-) delete mode 100644 demos/button/splitbutton.html delete mode 100644 demos/button/toolbar.html delete mode 100644 ui/checkboxradio.js create mode 100644 ui/widgets/checkboxradio.js (limited to 'demos/button/default.html') diff --git a/demos/button/default.html b/demos/button/default.html index 5418fd8c9..644dcd225 100644 --- a/demos/button/default.html +++ b/demos/button/default.html @@ -5,18 +5,13 @@ jQuery UI Button - Default functionality - - - - - + diff --git a/demos/button/icons.html b/demos/button/icons.html index a8deca9cd..af4e3000c 100644 --- a/demos/button/icons.html +++ b/demos/button/icons.html @@ -5,13 +5,9 @@ jQuery UI Button - Icons - - - - - + @@ -41,7 +36,6 @@ -

CSS

diff --git a/demos/button/splitbutton.html b/demos/button/splitbutton.html deleted file mode 100644 index 6b7562d68..000000000 --- a/demos/button/splitbutton.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - jQuery UI Button - Split button - - - - - - - - - - - - - -
-
- - -
-
    -
  • Open...
  • -
  • Save
  • -
  • Delete
  • -
-
- -
-

An example of a split button built with two buttons: A plain button with just text, one with only a primary icon -and no text. Both are grouped together in a set.

-
- - diff --git a/demos/button/toolbar.html b/demos/button/toolbar.html deleted file mode 100644 index f2c242f1f..000000000 --- a/demos/button/toolbar.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - jQuery UI Button - Toolbar - - - - - - - - - - - -
- - - - - - - - - - - - - - -
- -
-

- A mediaplayer toolbar. Take a look at the underlying markup: A few button elements, - an input of type checkbox for the Shuffle button, and three inputs of type radio for the Repeat options. -

-
- - diff --git a/demos/checkboxradio/default.html b/demos/checkboxradio/default.html index c8f4c5566..c8c1a800d 100644 --- a/demos/checkboxradio/default.html +++ b/demos/checkboxradio/default.html @@ -4,17 +4,12 @@ jQuery UI Checkboxradio - Default functionality - - - - - + diff --git a/demos/checkboxradio/no-icons.html b/demos/checkboxradio/no-icons.html index 64b511246..c738d8ca8 100644 --- a/demos/checkboxradio/no-icons.html +++ b/demos/checkboxradio/no-icons.html @@ -4,17 +4,12 @@ jQuery UI Checkboxradio - No Icons - - - - - + diff --git a/demos/checkboxradio/product-selector.html b/demos/checkboxradio/product-selector.html index f8da07118..4e6db4507 100644 --- a/demos/checkboxradio/product-selector.html +++ b/demos/checkboxradio/product-selector.html @@ -4,14 +4,9 @@ jQuery UI Checkboxradio - Product Selector - - - - - - +