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-combobox/bootstrap-combobox
Advanced tools
Readme
We had need of a combobox at work and after looking around at the available options I was not happy with any of them. The project had all its styling based on Twitter's Bootstrap, so building on that made sense.
You can install this plugin one of two ways.
Previously, this was the only way to install the plugin. You will need two files included in your HTML in order for this to work:
npm install @bootstrap-combobox/bootstrap-combobox
This plugin is now in bower! If you've already installed bower on your machine, simply use the command:
bower install bootstrap-combobox
This will install the plugin to your bower_components folder. For more information please see http://bower.io/
The dependencies are the Bootstrap stylesheet(CSS or LESS). Include it and then the stylesheet(CSS or LESS) and javascript.
Then just activate the plugin on a normal select box(suggest having a blank option first):
<select class="combobox">
<option></option>
<option value="PA">Pennsylvania</option>
<option value="CT">Connecticut</option>
<option value="NY">New York</option>
<option value="MD">Maryland</option>
<option value="VA">Virginia</option>
</select>
<script type="text/javascript">
$(document).ready(function(){
$('.combobox').combobox();
});
</script>
When activating the plugin, you may include an object containing options for the combobox
$('.combobox').combobox({bsVersion: '2'});
menu
: Custom markup for the dropdown menu list element.
item
: Custom markup for the dropdown menu list items.
matcher
: Custom function with one item
argument that compares the item to the input. Defaults to matching on the query being a substring of the item, case insenstive
sorter
: Custom function that sorts a list items
for display in the dropdown
highlighter
: Custom function for highlighting an item
. Defaults to bolding the query within a matched item
template
: Custom function that returns markup for the combobox.
bsVersion
: Version of bootstrap being used. This is used by the default template
function to generate markup correctly. Defaults to '3'. Set to '2' for compatibility with Bootstrap 2
appendId
: The desired id of the transformed combobox. This will become the id attr and can be mapped to a label using the for attribute. Useful for accessibility.
renderLimit
: The maximum number of suggestions to render on the screen at one time. Useful for dealing with source elements with items.
clearIfNoMatch
: When true, the combobox will clear its contents when unfocusing if a matching option is not selected. Defaults to true.
iconCaret
: Custom icon font class for the caret button of the combobox. This is only effective when using {bsVersion: '4'}. (e.g. 'fas fa-caret-down' when using Font Awesome)
iconRemove
: Custom icon font class for the remove button of the combobox. This is only effective when using {bsVersion: '4'}. (e.g. 'fas fa-times' when using Font Awesome)
Uses the latest 1.X version of jQuery and the latest version of Bootstrap.
http://dl.dropbox.com/u/21368/bootstrap-combobox/index.html
http://bootstrap-combobox-test.herokuapp.com/
Licensed under the Apache License, Version 2.0
FAQs
A combobox plugin that works with twitter bootstrap
The npm package @bootstrap-combobox/bootstrap-combobox receives a total of 9 weekly downloads. As such, @bootstrap-combobox/bootstrap-combobox popularity was classified as not popular.
We found that @bootstrap-combobox/bootstrap-combobox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.