Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 6bd0caf

Browse files
Controlgroup: Added option theme. Fixes #5301.
1 parent 7f3f7c5 commit 6bd0caf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

js/widgets/controlgroup.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ define( [ "jquery",
1414

1515
$.widget( "mobile.controlgroup", $.mobile.widget, $.extend( {
1616
options: {
17+
theme: null,
1718
shadow: false,
1819
corners: true,
1920
excludeInvisible: true,
@@ -55,6 +56,12 @@ $.widget( "mobile.controlgroup", $.mobile.widget, $.extend( {
5556
this.refresh();
5657
}
5758

59+
if ( o.theme !== undefined ) {
60+
$el
61+
.removeClass( "ui-group-theme-" + this.options.theme )
62+
.addClass( "ui-group-theme-" + o.theme );
63+
}
64+
5865
if ( o.corners !== undefined ) {
5966
$el.toggleClass( "ui-corner-all", o.corners );
6067
}

0 commit comments

Comments
 (0)