Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap-multiselect
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap-multiselect
Commits
5d047435
Commit
5d047435
authored
Feb 12, 2015
by
davidstutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for #432. Fixed issue with caret after merges.
parent
bf53abe6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
9 deletions
+41
-9
bootstrap-multiselect.css
dist/css/bootstrap-multiselect.css
+1
-1
bootstrap-multiselect.js
dist/js/bootstrap-multiselect.js
+2
-2
bootstrap-multiselect.less
dist/less/bootstrap-multiselect.less
+0
-5
index.html
index.html
+38
-1
No files found.
dist/css/bootstrap-multiselect.css
View file @
5d047435
.multiselect-container
{
position
:
absolute
;
list-style-type
:
none
;
margin
:
0
;
padding
:
0
}
.multiselect-container
.input-group
{
margin
:
5px
}
.multiselect-container
>
li
{
padding
:
0
}
.multiselect-container
>
li
>
a
.multiselect-all
label
{
font-weight
:
700
}
.multiselect-container
>
li
.multiselect-group
label
{
margin
:
0
;
padding
:
3px
20px
;
height
:
100%
;
font-weight
:
700
}
.multiselect-container
>
li
.multiselect-group-clickable
label
{
cursor
:
pointer
}
.multiselect-container
>
li
>
a
{
padding
:
0
}
.multiselect-container
>
li
>
a
>
label
{
margin
:
0
;
height
:
100%
;
cursor
:
pointer
;
font-weight
:
400
;
padding
:
3px
20px
3px
40px
}
.multiselect-container
>
li
>
a
>
label
.radio
,
.multiselect-container
>
li
>
a
>
label
.checkbox
{
margin
:
0
}
.multiselect-container
>
li
>
a
>
label
>
input
[
type
=
checkbox
]
{
margin-bottom
:
5px
}
.filter
.btn
{
padding
:
6px
3px
}
.btn-group
>
.btn-group
:nth-child
(
2
)>
.multiselect.btn
{
border-top-left-radius
:
4px
;
border-bottom-left-radius
:
4px
}
.form-inline
.multiselect-container
label
.checkbox
,
.form-inline
.multiselect-container
label
.radio
{
padding
:
3px
20px
3px
40px
}
.form-inline
.multiselect-container
li
a
label
.checkbox
input
[
type
=
checkbox
],
.form-inline
.multiselect-container
li
a
label
.radio
input
[
type
=
radio
]
{
margin-left
:
-20px
;
margin-right
:
0
}
.multiselect
.multiselect-selected-text
{
max-width
:
100%
;
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
vertical-align
:
middle
;}
.multiselect
.caret
{
margin
:
auto
;
display
:
block
;}
\ No newline at end of file
.multiselect-container
{
position
:
absolute
;
list-style-type
:
none
;
margin
:
0
;
padding
:
0
}
.multiselect-container
.input-group
{
margin
:
5px
}
.multiselect-container
>
li
{
padding
:
0
}
.multiselect-container
>
li
>
a
.multiselect-all
label
{
font-weight
:
700
}
.multiselect-container
>
li
.multiselect-group
label
{
margin
:
0
;
padding
:
3px
20px
3px
20px
;
height
:
100%
;
font-weight
:
700
}
.multiselect-container
>
li
.multiselect-group-clickable
label
{
cursor
:
pointer
}
.multiselect-container
>
li
>
a
{
padding
:
0
}
.multiselect-container
>
li
>
a
>
label
{
margin
:
0
;
height
:
100%
;
cursor
:
pointer
;
font-weight
:
400
;
padding
:
3px
20px
3px
40px
}
.multiselect-container
>
li
>
a
>
label
.radio
,
.multiselect-container
>
li
>
a
>
label
.checkbox
{
margin
:
0
}
.multiselect-container
>
li
>
a
>
label
>
input
[
type
=
checkbox
]
{
margin-bottom
:
5px
}
.btn-group
>
.btn-group
:nth-child
(
2
)>
.multiselect.btn
{
border-top-left-radius
:
4px
;
border-bottom-left-radius
:
4px
}
.form-inline
.multiselect-container
label
.checkbox
,
.form-inline
.multiselect-container
label
.radio
{
padding
:
3px
20px
3px
40px
}
.form-inline
.multiselect-container
li
a
label
.checkbox
input
[
type
=
checkbox
],
.form-inline
.multiselect-container
li
a
label
.radio
input
[
type
=
radio
]
{
margin-left
:
-20px
;
margin-right
:
0
}
\ No newline at end of file
dist/js/bootstrap-multiselect.js
View file @
5d047435
...
...
@@ -242,6 +242,7 @@
},
buttonClass
:
'
btn btn-default
'
,
inheritClass
:
false
,
buttonWidth
:
'
auto
'
,
buttonContainer
:
'
<div class="btn-group" />
'
,
dropRight
:
false
,
...
...
@@ -250,7 +251,6 @@
// If maximum height is exceeded a scrollbar will be displayed.
maxHeight
:
false
,
checkboxName
:
false
,
inheritClasses
:
false
,
includeSelectAllOption
:
false
,
includeSelectAllIfMoreThan
:
0
,
selectAllText
:
'
Select all
'
,
...
...
@@ -298,7 +298,7 @@
*/
buildButton
:
function
()
{
this
.
$button
=
$
(
this
.
options
.
templates
.
button
).
addClass
(
this
.
options
.
buttonClass
);
if
(
this
.
$select
.
attr
(
'
class
'
)
&&
this
.
options
.
inheritClass
es
)
{
if
(
this
.
$select
.
attr
(
'
class
'
)
&&
this
.
options
.
inheritClass
)
{
this
.
$button
.
addClass
(
this
.
$select
.
attr
(
'
class
'
));
}
// Adopt active state.
...
...
dist/less/bootstrap-multiselect.less
View file @
5d047435
...
...
@@ -50,16 +50,11 @@
> input[type="checkbox"] {
margin-bottom:5px;
}
}
}
}
}
.filter .btn {
padding: 6px 3px;
}
.btn-group > .btn-group:nth-child(2) > .multiselect.btn {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
...
...
index.html
View file @
5d047435
...
...
@@ -794,11 +794,48 @@
<pre
class=
"prettyprint linenums"
>
<
script type=
"
text/javascript
">
$(document).ready(function() {
$('#example-button
-c
lass').multiselect({
$('#example-button
C
lass').multiselect({
buttonClass: 'btn btn-link'
});
});
<
/script
>
</pre>
</div>
</td>
</tr>
<tr>
<td><code>
inheritClass
</code></td>
<td>
<p>
Inherit the class of the button from the original select.
</p>
<div
class=
"example"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#example-inheritButton
'
).
multiselect
({
inheritClass
:
true
});
});
</script>
<select
id=
"example-inheritButton"
class=
"btn-primary"
multiple=
"multiple"
>
<option
value=
"1"
>
Option 1
</option>
<option
value=
"2"
>
Option 2
</option>
<option
value=
"3"
>
Option 3
</option>
<option
value=
"4"
>
Option 4
</option>
<option
value=
"5"
>
Option 5
</option>
<option
value=
"6"
>
Option 6
</option>
</select>
</div>
<div
class=
"highlight"
>
<pre
class=
"prettyprint linenums"
>
<
script type=
"
text/javascript
">
$(document).ready(function() {
$('#example-inheritButton').multiselect({
inheritClass: true
});
});
<
/script
>
</pre>
</div>
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment