Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bootstrap-multiselectsplitter
Advanced tools
Readme
Transforms a <select> containing one or more <optgroup> in two chained <select>.
This script is better version of bootstrap-selectsplitter, for multi select with more script options. If you want to select more options, you must hold CTRL key. (default select behaviour)
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
npm i bootstrap-multiselectsplitter
Create a <select> with at least one <optgroup>.
Each <option> of your <select> must have a unique value.
<select multiple="multiple">
<optgroup label="Category 1">
<option value="1">Choice 1</option>
<option value="2">Choice 2</option>
<option value="3">Choice 3</option>
<option value="4">Choice 4</option>
</optgroup>
<optgroup label="Category 2">
<option value="5">Choice 5</option>
<option value="6">Choice 6</option>
<option value="7">Choice 7</option>
<option value="8">Choice 8</option>
</optgroup>
<optgroup label="Category 3">
<option value="9">Choice 9</option>
<option value="10">Choice 10</option>
<option value="11">Choice 11</option>
<option value="12">Choice 12</option>
</optgroup>
</select>
$('select').multiselectsplitter();
$('select').multiselectsplitter('enable');
$('select').multiselectsplitter('disable');
$('select').multiselectsplitter('destroy');
DEFAULT: null
DEFAULT: null
DEFAULT: false
DEFAULT: false
DEFAULT: false
DEFAULT: null
DEFAULT: null
DEFAULT: function (maximumSelected) { alert("Only " + maximumSelected + " values can be selected"); }
DEFAULT: function (label, $originalSelect) { return '<option>' + label + '</option>'; }
DEFAULT: function (label, $firstSelect) { return '<option>' + label + '</option>'; }
DEFAULT: <div class="row" data-multiselectsplitter-wrapper-selector><div class="col-xs-12 col-sm-6"><select class="form-control" data-multiselectsplitter-firstselect-selector></select></div><div class="col-xs-12 col-sm-6"><select class="form-control" data-multiselectsplitter-secondselect-selector></select></div></div>
1.0.1 - added functions for disabling/enabling
1.0.0 - release
Copyright (C) 2016 Ing. Matúš Ferko
Licensed under the MIT license.
FAQs
Bootstrap extended for multi select splitter
The npm package bootstrap-multiselectsplitter receives a total of 1,623 weekly downloads. As such, bootstrap-multiselectsplitter popularity was classified as popular.
We found that bootstrap-multiselectsplitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.