Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
react-multi-dropdown
Advanced tools
A simple multi-select drop down, styles and some code shamelessly lifted from react-super-select (https://github.com/alsoscotland/react-super-select)
Quick summary I needed a drop down multi select that worked with react, and never grew in size. I did not need to show the selected items in the text I just needed to say how many were selected and move on.
Examples
import {MultiList} from 'react-multi-dropdown'
...
handleChange(selectedArray) {
// do what you please with the array
},
render() {
let type = 'elemental'; // or bootstrap
let values = [];
let items = [{id: '123', text: 'this is an item'}];
return (
<MultiList type={type} initialValues={values} items={items} valueKey='id' labelKey='text' onChange={this.handleChange} />
);
}
var users = new SqlTable({
TableName: 'users',
columns: [{ColumnName: 'id'}, {ColumnName: 'username'}, {ColumnName: 'password'}]
});
type = elemental or bootstrap if you use elemental you will be using items from a nice UI library for react elemental (elemental-ui.com) bootstrap will only use bootstrap items
you will need the style.css file included, and if you use elemental you can use the elemental.css I have or generate the css from the less files in elemental
There is a demo directory on github if you pull everything down npm pack cd demo npm install gulp
there should be a window popped on your browser, click on the PageOne menu item at the top, the demo has a number of things I was playing with. It has routing and reflux setup with data stores.
npm install react-multi-dropdown
FAQs
Muli-select drop down
The npm package react-multi-dropdown receives a total of 0 weekly downloads. As such, react-multi-dropdown popularity was classified as not popular.
We found that react-multi-dropdown 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.