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
a6a76454
Commit
a6a76454
authored
Jul 15, 2014
by
David Stutz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/davidstutz/bootstrap-multiselect
parents
d887a6b5
bdd8a427
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
bootstrap-multiselect.css
css/bootstrap-multiselect.css
+1
-1
bootstrap-multiselect.js
js/bootstrap-multiselect.js
+6
-1
bootstrap-multiselect.less
less/bootstrap-multiselect.less
+14
-0
No files found.
css/bootstrap-multiselect.css
View file @
a6a76454
.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
>
label
.multiselect-group
{
margin
:
0
;
padding
:
3px
20px
;
height
:
100%
;
font-weight
:
700
}
.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
}
\ 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
>
label
.multiselect-group
{
margin
:
0
;
padding
:
3px
20px
;
height
:
100%
;
font-weight
:
700
}
.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
js/bootstrap-multiselect.js
View file @
a6a76454
...
...
@@ -30,6 +30,8 @@
$
(
element
).
multiselect
(
config
);
if
(
isObservableArray
(
listOfSelectedItems
))
{
//set the initial selection state on the multi-select list
$
(
element
).
multiselect
(
'
select
'
,
ko
.
utils
.
unwrapObservable
(
listOfSelectedItems
));
// Subscribe to the selectedOptions: ko.observableArray
listOfSelectedItems
.
subscribe
(
function
(
changes
)
{
var
addedArray
=
[],
deletedArray
=
[];
...
...
@@ -262,6 +264,9 @@
this
.
$button
.
css
({
'
width
'
:
this
.
options
.
buttonWidth
});
this
.
$container
.
css
({
'
width
'
:
this
.
options
.
buttonWidth
});
}
// Keep the tab index from the select.
...
...
@@ -894,7 +899,7 @@
var
optionDOM
=
""
;
var
groupCounter
=
0
;
$
.
each
(
dataprovider
,
function
(
option
)
{
$
.
each
(
dataprovider
,
function
(
index
,
option
)
{
if
(
$
.
isArray
(
option
.
children
))
{
groupCounter
++
;
optionDOM
+=
'
<optgroup label="
'
+
(
option
.
title
||
'
Group
'
+
groupCounter
)
+
'
">
'
;
...
...
less/bootstrap-multiselect.less
View file @
a6a76454
...
...
@@ -58,3 +58,17 @@
border-bottom-left-radius: 4px;
}
.form-inline .multiselect-container{
label.checkbox, label.radio{
padding: 3px 20px 3px 40px;
}
li a label{
&.checkbox input[type="checkbox"], &.radio input[type="radio"]{
margin-left: -20px;
margin-right: 0;
}
}
}
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