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
5b5c0b59
Commit
5b5c0b59
authored
Sep 23, 2013
by
David Stutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for #160, #159.
parent
958a7e2d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
28 deletions
+37
-28
README.md
README.md
+12
-2
index.html
index.html
+17
-13
bootstrap-multiselect.js
js/bootstrap-multiselect.js
+2
-1
jquery-1.10.2.min.js
js/jquery-1.10.2.min.js
+0
-6
jquery-2.0.1.min.js
js/jquery-2.0.1.min.js
+0
-6
jquery-2.0.3.min.js
js/jquery-2.0.3.min.js
+6
-0
No files found.
README.md
View file @
5b5c0b59
...
...
@@ -174,11 +174,21 @@ Rebuilds the whole dropdown menu. Selected options will still be selected.
**.multiselect('select', value)**
Selects an option by its value.
Selects an option by its value.
Works also using an array of values.
**.multiselect('deselect', value)**
Deselects an option by its value.
Deselects an option by its value. Works also using an array of values.
**.multiselect('dataprovider', data)**
Build the select's options using the following scheme:
var data = [
{label: "ACNP", value: "ACNP"},
{label: "test", value: "test"}
];
$("#multiselect").multiselect("dataprovider", data);
## Additional Styling
...
...
index.html
View file @
5b5c0b59
...
...
@@ -10,7 +10,7 @@
<link
rel=
"stylesheet"
href=
"css/bootstrap-multiselect.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"css/prettify.css"
type=
"text/css"
>
<script
type=
"text/javascript"
src=
"js/jquery-2.0.
1
.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-2.0.
3
.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap-3.0.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap-multiselect.js"
></script>
<script
type=
"text/javascript"
src=
"js/prettify.js"
></script>
...
...
@@ -681,7 +681,7 @@
</div>
</td>
<td>
Selects an option by its value.
Selects an option by its value.
Works also using an array of values.
</td>
</tr>
<tr>
...
...
@@ -701,20 +701,24 @@
</div>
</td>
<td>
Deselect an option by its value.
Deselect an option by its value. Works also using an array of values.
</td>
</tr>
<tr>
<td><code>
.multiselect('dataprovider', data)
</code></td>
<td
colspan=
"2"
>
Provides data for building the select's options the following way:
<pre
class=
"prettyprint linenums"
>
var data = [
{label:
"
ACNP
"
, value:
"
ACNP
"
},
{label:
"
test
"
, value:
"
test
"
}
];
$(
"
#multiselect
"
).multiselect('dataprovider', data);
</pre>
</td>
</tr>
</tbody>
</table>
<div
class=
"page-header"
>
<h1>
Further Examples
</h1>
...
...
@@ -1249,7 +1253,7 @@
<h1>
Additional Styling
</h1>
</div>
<p>
For additionaly styling of the multiselect button the CSS class
<code>
multiselect
</code>
can be used.
</p>
<style
type=
"text/css"
>
<style
media=
"screen"
type=
"text/css"
>
.add-styling-1
.multiselect
{
width
:
500px
;
text-align
:
left
;
...
...
js/bootstrap-multiselect.js
View file @
5b5c0b59
...
...
@@ -516,7 +516,8 @@
this
.
buildFilter
();
}
},
// Build select using the given data as options.
dataprovider
:
function
(
dataprovider
)
{
var
optionDOM
=
""
;
...
...
js/jquery-1.10.2.min.js
deleted
100644 → 0
View file @
958a7e2d
This diff is collapsed.
Click to expand it.
js/jquery-2.0.1.min.js
deleted
100644 → 0
View file @
958a7e2d
This diff is collapsed.
Click to expand it.
js/jquery-2.0.3.min.js
0 → 100644
View file @
5b5c0b59
This diff is collapsed.
Click to expand it.
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