Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Very useful react component for multi selection dropdown with filtering , toggle selecting all, tags outside the dropdown and custom button inside dropdown
Very useful react component for multi selection dropdown with filtering, toggle selecting all, tags outside the dropdown and custom button inside dropdown
npm install superdd
import {SuperDD, TagsContainer} from 'superdd/dist/index';
const Home = (props) => {
let listData = [
{Id: 1, Code: 'hhh', Name: 'Hello1', Discription: 'anything1'},
{Id: 2, Code: 'ggg', Name: 'Hello2', Discription: 'anything2'},
{Id: 3, Code: 'fff', Name: 'Hello3', Discription: 'anything3'},
{Id: 4, Code: 'sss', Name: 'Hello4', Discription: 'anything4'},
{Id: 5, Code: 'sss', Name: 'Hello4', Discription: 'anything4'},
{Id: 6, Code: 'sss', Name: 'Hello4', Discription: 'anything4'},
{Id: 7, Code: 'sss', Name: 'Hello4', Discription: 'anything4'},
{Id: 8, Code: 'sss', Name: 'Hello4', Discription: 'anything4'},
];
// to get the selected data
// whither on the update action
// or deselecting from the TagsContainer
const [selectedItems, setSelectedItems] = useState();
useEffect(() => {
console.log('from setSelectedItems', selectedItems);
}, [selectedItems]);
const onUpdateAction = (superDDSelectedItems) => {
console.log('from update function', superDDSelectedItems);
};
return (
<div className="m-5" style={{width: '250px'}}>
<SuperDD
DataList={listData}
DisplayBy={'Code'}
PlaceHolder={'Select Platforms'}
ShowUpdateButton={true}
ShowCancelButton={true}
Filterable={true}
SetSelectedItems={setSelectedItems}
UpdateAction={onUpdateAction}
/>
<br />
<TagsContainer
DisplayBy={'Code'}
TagsHasDeselect={true}
ContainerHasDeselect={5}
/>
</div>
);
};
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
[Super Drop Down] is a very useful react component for multi selection dropdown with Filtering, Sorting, Toggle selecting all, Tags in another component and Custom buttons inside dropdown with custom functions can be provided from the outside
The npm package superdd receives a total of 278 weekly downloads. As such, superdd popularity was classified as not popular.
We found that superdd 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.