Skip to content

Commit

Permalink
Add styleBase option
Browse files Browse the repository at this point in the history
Provides ability to not use the .btn class on the button. e.g. change
styleBase to 'form-control' and style to 'input-lg'. Close snapappointments#975. Close
snapappointments#933.
  • Loading branch information
caseyjhol authored and avantika-gupta-jtg committed May 14, 2020
1 parent 7218ace commit 0fb470c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
doneButton: false,
doneButtonText: 'Close',
multipleSeparator: ', ',
styleBase: 'btn',
style: 'btn-default',
size: 'auto',
title: null,
Expand Down Expand Up @@ -342,7 +343,7 @@
: '';
var drop =
'<div class="btn-group bootstrap-select' + multiple + inputGroup + '">' +
'<button type="button" class="btn dropdown-toggle" data-toggle="dropdown"' + autofocus + '>' +
'<button type="button" class="' + this.options.styleBase + ' dropdown-toggle" data-toggle="dropdown"' + autofocus + '>' +
'<span class="filter-option pull-left"></span>&nbsp;' +
'<span class="caret"></span>' +
'</button>' +
Expand Down

0 comments on commit 0fb470c

Please sign in to comment.