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
9440fe36
Commit
9440fe36
authored
Oct 14, 2015
by
David Stutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Example for #555;
parent
39ad3137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
4 deletions
+67
-4
index.html
index.html
+67
-4
No files found.
index.html
View file @
9440fe36
...
...
@@ -778,13 +778,26 @@
<pre
class=
"prettyprint linenums"
>
<
script type=
"
text/javascript
">
$(document).ready(function() {
$('#example-onChange').multiselect({
onChange: function(option, checked, select) {
alert('Changed option ' + $(option).val() + '.');
}
$('#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
>
</pre>
</div>
</td>
...
...
@@ -2295,6 +2308,56 @@
});
});
<
/script
>
</pre>
</div>
</td>
</tr>
<tr>
<td>
<code>
enableFullValueFiltering
</code>
</td>
<td>
<p>
Set to
<code>
true
</code>
to enable full value filtering, that is all options are shown where the query is a prefix of. An example is given here:
<a
href=
"https://github.com/davidstutz/bootstrap-multiselect/pull/555"
target=
"_blank"
>
#555
</a>
.
</p>
<div
class=
"example"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'
#example-enableFullValueFiltering
'
).
multiselect
({
enableFiltering
:
true
,
enableFullValueFiltering
:
true
});
});
</script>
<select
id=
"example-enableFullValueFiltering"
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>
<option
value=
"7"
>
Option 7
</option>
<option
value=
"8"
>
Option 8
</option>
<option
value=
"9"
>
Option 9
</option>
<option
value=
"10"
>
Option 10
</option>
<option
value=
"11"
>
Option 11
</option>
<option
value=
"12"
>
Option 12
</option>
<option
value=
"13"
>
Option 13
</option>
<option
value=
"14"
>
Option 14
</option>
<option
value=
"15"
>
Option 15
</option>
</select>
</div>
<div
class=
"highlight"
>
<pre
class=
"prettyprint linenums"
>
<
script type=
"
text/javascript
">
$(document).ready(function() {
$('#example-enableFullValueFiltering').multiselect({
enableFiltering: true,
enableFullValueFiltering: 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