Skip to content

Commit

Permalink
Re: #204 - Support passing custom theme config
Browse files Browse the repository at this point in the history
  • Loading branch information
gfranko committed Oct 4, 2013
1 parent 8d9c624 commit 3225751
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,13 @@

//var select = $("select").selectBoxIt({ populate: '<option value="test">test</option>' }).data('selectBox-selectBoxIt').remove(0);

$('select').selectBoxIt({ defaultText: 'Testing', autoWidth: false });
$('select').selectBoxIt({
defaultText: 'Testing',
autoWidth: false,
theme: {
'list': 'greg-list'
}
});

$('form').removeClass('hidden');

Expand Down
2 changes: 1 addition & 1 deletion src/javascripts/jquery.selectBoxIt.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@

"id": originalElemId && originalElemId + "SelectBoxItContainer",

"class": "selectboxit-container " + (copyClasses === "container" ? selectboxClasses: "")
"class": self.theme.container + ' ' + (copyClasses === "container" ? selectboxClasses: "")

}).

Expand Down
2 changes: 1 addition & 1 deletion src/javascripts/jquery.selectBoxIt.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@

"id": originalElemId && originalElemId + "SelectBoxItContainer",

"class": "selectboxit-container " + (copyClasses === "container" ? selectboxClasses: "")
"class": self.theme.container + ' ' + (copyClasses === "container" ? selectboxClasses: "")

}).

Expand Down
Loading

0 comments on commit 3225751

Please sign in to comment.