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
669692e7
Commit
669692e7
authored
Oct 14, 2015
by
David Stutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example for #600.
parent
166d383f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
3 deletions
+48
-3
bower.json
bower.json
+1
-1
bootstrap-multiselect.js
dist/js/bootstrap-multiselect.js
+1
-2
index.html
index.html
+46
-0
No files found.
bower.json
View file @
669692e7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"name"
:
"bootstrap-multiselect"
,
"name"
:
"bootstrap-multiselect"
,
"description"
:
"Twitter Bootstrap plugin to make selects user friendly."
,
"description"
:
"Twitter Bootstrap plugin to make selects user friendly."
,
"homepage"
:
"http://davidstutz.github.io/bootstrap-multiselect/"
,
"homepage"
:
"http://davidstutz.github.io/bootstrap-multiselect/"
,
"version"
:
"0.9.1
4
"
,
"version"
:
"0.9.1
3
"
,
"keywords"
:
[
"keywords"
:
[
"js"
,
"js"
,
"css"
,
"css"
,
...
...
dist/js/bootstrap-multiselect.js
View file @
669692e7
...
@@ -177,9 +177,8 @@
...
@@ -177,9 +177,8 @@
}
}
this
.
$select
.
hide
().
after
(
this
.
$container
);
this
.
$select
.
hide
().
after
(
this
.
$container
);
this
.
options
.
onInitialized
(
this
.
$select
,
this
.
$container
);
this
.
options
.
onInitialized
(
this
.
$select
,
this
.
$container
);
}
;
}
Multiselect
.
prototype
=
{
Multiselect
.
prototype
=
{
...
...
index.html
View file @
669692e7
...
@@ -739,6 +739,52 @@
...
@@ -739,6 +739,52 @@
});
});
});
});
<
/script
>
<
/script
>
</pre>
</div>
</td>
</tr>
<tr>
<td><code>
onInitialized
</code></td>
<td>
<p>
A function which is triggered when the multiselect is finished initializing.
</p>
<div
class=
"example"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#example-onInitialized-button
'
).
on
(
'
click
'
,
function
()
{
$
(
'
#example-onInitialized
'
).
multiselect
({
onInitialized
:
function
(
select
,
container
)
{
alert
(
'
Initialized.
'
);
}
});
});
});
</script>
<div
class=
"btn-group"
>
<select
id=
"example-onInitialized"
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>
<button
id=
"example-onInitialized-button"
class=
"btn btn-primary"
>
Activate!
</button>
</div>
</div>
<div
class=
"highlight"
>
<pre
class=
"prettyprint linenums"
>
<
script type=
"
text/javascript
">
$(document).ready(function() {
$('#example-onChange').multiselect({
onChange: function(option, checked, select) {
alert('Changed option ' + $(option).val() + '.');
}
});
});
<
/script
>
</pre>
</pre>
</div>
</div>
</td>
</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